Tests failing
If I run the tests for the media server, I get the following error:
go test gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server
2020-05-04T11:15:48.249 memostream::ListenAndServe [memoServer.go:212] > INFO - starting HTTP memoServer at http://localhost:41937
--- FAIL: TestProxy (0.00s)
server_test.go:100: query http://localhost:41937/memo/sig-001 - proxy
server_test.go:108: error checking proxy: Get "http://localhost:41937/memo/sig-001": dial tcp [::1]:41937: connect: connection refused
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x80303a]
goroutine 15 [running]:
testing.tRunner.func1.1(0x86e140, 0xc8b270)
/usr/lib/go/src/testing/testing.go:940 +0x2f5
testing.tRunner.func1(0xc000124d80)
/usr/lib/go/src/testing/testing.go:943 +0x3f9
panic(0x86e140, 0xc8b270)
/usr/lib/go/src/runtime/panic.go:969 +0x166
gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server.TestProxy(0xc000124d80)
/home/seb/.go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server/server_test.go:110 +0x55a
testing.tRunner(0xc000124d80, 0x90e5c8)
/usr/lib/go/src/testing/testing.go:991 +0xdc
created by testing.(*T).Run
/usr/lib/go/src/testing/testing.go:1042 +0x357
FAIL gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server 0.005s
FAIL
Are there further setup steps required?
This happens independently of running the tests locally or in the CI workflow.
For the time being I've disabled the tests in the CI definition.