You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this gave us lots of trouble when debugging a failed test
$ make test-e2e-op [18:13:35]
cd tools; \
go install -trimpath github.com/babylonchain/babylon/cmd/babylond
go test -mod=readonly -timeout=25m -v github.com/babylonchain/finality-provider/itest github.com/babylonchain/finality-provider/itest/opstackl2 -count=1 --tags=e2e_op
? github.com/babylonchain/finality-provider/itest [no test files]
=== RUN TestSubmitFinalitySignature
service injective.evm.v1beta1.Msg does not have cosmos.msg.v1.service proto annotation
service injective.evm.v1beta1.Msg does not have cosmos.msg.v1.service proto annotation
test_manager.go:105: Babylon node is started
2024/06/21 18:17:56 Cannot remove dir 1
2024/06/21 18:17:56 Cannot remove dir 2
test_manager.go:110:
Error Trace: /Users/<redacted>/Documents/Projects/babylon-finality-provider/itest/opstackl2/test_manager.go:110
/opt/homebrew/Cellar/go/1.22.4/libexec/src/runtime/panic.go:770
/Users/<redacted>/Documents/Projects/babylon-finality-provider/cosmwasmclient/client/keys.go:18
/Users/<redacted>/Documents/Projects/babylon-finality-provider/itest/opstackl2/e2e_test.go:42
/Users/<redacted>/Documents/Projects/babylon-finality-provider/itest/opstackl2/e2e_test.go:77
Error: Received unexpected error:
exit status 1
Test: TestSubmitFinalitySignature
--- FAIL: TestSubmitFinalitySignature (1.88s)
FAIL
FAIL github.com/babylonchain/finality-provider/itest/opstackl2 2.833s
FAIL
make: *** [test-e2e-op] Error 1
then we realized it's b/c there were some process running:
so when os.Exit() is called, the process will terminate immediately without running deferred functions. This is because os.Exit does not allow the current function to return, bypassing the defer mechanism.
Yeah we are aware of this issue, and great work finding the root cause! Looks like we need a more graceful way to terminate the program compared to os.Exit(1)
this gave us lots of trouble when debugging a failed test
then we realized it's b/c there were some process running:
we found out the panic happened inside
we should have a better way to deal w it here
The text was updated successfully, but these errors were encountered: