Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E tests might be failing because of a race cond with the Tendermint RPC server starting up #644

Closed
sug0 opened this issue Oct 19, 2022 · 2 comments

Comments

@sug0
Copy link
Contributor

sug0 commented Oct 19, 2022

Context

In e2e tests, before we make any client transfer, we grep the ledger's log for "Anoma ledger node started". After this, we proceed to test different ledger functionality.

Problem

When ran locally, most e2e tests seem to be failing arbitrarily. Upon closer inspection of log timestamps, we find that client requests are made, correctly, after "Anoma ledger node started" is logged, but not after "module=rpc-server msg="Starting RPC HTTP server on...", which happens after the RPC server service in Tendermint starts. All client transfers make RPC requests, therefore they fail with a TCP connection reset error.


Potential fix

Grep the Tendermint log for "Starting RPC HTTP server".

@sug0
Copy link
Contributor Author

sug0 commented Oct 19, 2022

Related with #418

@sug0 sug0 mentioned this issue Oct 19, 2022
@sug0
Copy link
Contributor Author

sug0 commented Oct 24, 2022

Fixed in #646

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant