TestDoPost: === RUN TestDoPost
DEBUG flashlight.services: http.go:63 Response status: 403 Forbidden headers:
map[Cache-Control:[max-age=0] Content-Length:[361] Content-Type:[text/html] Date:[Wed, 05 Feb 2025 19:47:33 GMT] Mime-Version:[1.0]]
--- FAIL: TestDoPost (0.04s)
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=0x0 pc=0x1b3105a]
goroutine 738 [running]:
testing.tRunner.func1.2({0x1dcf7a0, 0x2d16bb0})
/opt/hostedtoolcache/go/1.22.4/x64/src/testing/testing.go:1631 +0x3f7
testing.tRunner.func1()
/opt/hostedtoolcache/go/1.22.4/x64/src/testing/testing.go:1634 +0x6b6
panic({0x1dcf7a0?, 0x2d16bb0?})
/opt/hostedtoolcache/go/1.22.4/x64/src/runtime/panic.go:770 +0x132
github.com/getlantern/flashlight/v7/services.TestDoPost(0xc000532340)
/home/runner/work/flashlight/flashlight/services/http_test.go:62 +0x13a
testing.tRunner(0xc000532340, 0x20582c0)
/opt/hostedtoolcache/go/1.22.4/x64/src/testing/testing.go:1689 +0x21f
created by testing.(*T).Run in goroutine 1
/opt/hostedtoolcache/go/1.22.4/x64/src/testing/testing.go:1742 +0x826
- No trace available