rollmint icon indicating copy to clipboard operation
rollmint copied to clipboard

Testing issue: Error while dialing: dial tcp 127.0.0.1:7980: connect: connection refused

Open tzdybal opened this issue 1 year ago • 4 comments

When I run tests with make test they pass. Fun fact: when I call go test -count 1 ./... they fail, throwing multiple: Error while dialing: dial tcp 127.0.0.1:7980: connect: connection refused. Running go test -race -count 1 ./... tests pass.

It seems that we need to start mock DA for rpc/json package tests.

tzdybal avatar Apr 24 '24 14:04 tzdybal

can't reproduce, tests pass for me

yarikbratashchuk avatar Apr 24 '24 17:04 yarikbratashchuk

on a second run got: --- FAIL: TestMockDAErrors (0.25s) --- FAIL: TestMockDAErrors/submit_timeout (0.25s) da_test.go:196: Error Trace: /root/rollkit/da/da_test.go:196 /root/rollkit/da/da_test.go:85 Error: "" does not contain "context deadline exceeded" Test: TestMockDAErrors/submit_timeout Messages: should return context timeout error

yarikbratashchuk avatar Apr 24 '24 17:04 yarikbratashchuk

What about running go test ./rpc/...?

tzdybal avatar Apr 24 '24 18:04 tzdybal

We start mock DA server in node_test.go and da_test.go. But it is also used by rpc/json tests.

tzdybal avatar Apr 24 '24 18:04 tzdybal