Skip to content

time.Sleep removal from tests - #178

Merged
tzdybal merged 7 commits into
evstack:mainfrom
ntsanov:main
Nov 15, 2021
Merged

tzdybal merged 7 commits into
evstack:mainfrom
ntsanov:main

Conversation

@ntsanov

@ntsanov ntsanov commented Nov 10, 2021

Copy link
Copy Markdown
Contributor

I've removed some of the time.Sleep usage in the tests that could be reliably replaced by some some event
There are still some time.Sleep invocation, especially those waiting for Node initialization. As far as I could figure out those nodes have not yet connected when p2p messages are being sent. Probably setting some event in the p2p client on connect would make it possible to determine if all nodes have established connection

Closes #96

@adlerjohn
adlerjohn requested a review from tzdybal November 10, 2021 23:42
@adlerjohn adlerjohn added good first issue Good for newcomers T:testing Related to testing labels Nov 10, 2021
Should have read the Note comment...
@adlerjohn

Copy link
Copy Markdown
Contributor

cc @tzdybal

@tzdybal tzdybal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your submission! This looks really cool 🚀

Please clean-up unnecessary commented out code.

Comment thread node/integration_test.go Resolved
Comment thread rpcclient/local_test.go Resolved
@codecov-commenter

codecov-commenter commented Nov 12, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #178 (252cf60) into main (21ede1f) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #178   +/-   ##
=======================================
  Coverage   54.62%   54.62%           
=======================================
  Files          32       32           
  Lines        4978     4978           
=======================================
  Hits         2719     2719           
  Misses       1849     1849           
  Partials      410      410           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21ede1f...252cf60. Read the comment docs.

@tzdybal
tzdybal merged commit 08d9cd2 into evstack:main Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good first issue Good for newcomers T:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get rid of time.Sleep in tests

4 participants