[#345] Nettest error recovery
Description
Nettest scenarios tend to fail with various errors that don't depend on our code or environment.
This MR adds an ability to recover from invalid counter errors and weird ECONNRESET
during
tezos-client
calls.
Also, for the cases when scenario gets stuck without visible reason, 2-minute timeout was
added to all tezos-client
calls and all morley-client
RPC requests. If the request can be
safely retried, it's retried once and considered failed in case of repeated timeout
Related issue(s)
Resolves #345 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
[ ] If I added new functionality, I added tests covering it.[ ] If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
Quite hard to cover with tests since these failures are quite unstable and we can't easily reproduce them
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Roman Melnikov