Skip to content

Conversation

Empact
Copy link
Contributor

@Empact Empact commented Feb 26, 2018

Intermittent failure evident here:
https://travis-ci.org/bitcoin/bitcoin/jobs/344021180

@maflcko
Copy link
Member

maflcko commented Feb 26, 2018

Could we instead get rid of the time.sleep with an arbitrary argument? That is just terrible practice. If it is necessary to wait on some predicate, you might use the wait_until helper function.

@Empact
Copy link
Contributor Author

Empact commented Feb 26, 2018

Sounds good to me, hadn't seen wait_until

@Empact Empact changed the title test: Extend wait time by .1 seconds to ensure ping goes out test: Use wait_until to ensure ping goes out Feb 26, 2018
@Empact
Copy link
Contributor Author

Empact commented Feb 26, 2018

Switched to using wait_until here. There are a few other uses of time.sleep for this sort of thing. I'll switch them over in another PR.

@conscott
Copy link
Contributor

Tested 0eb84f3 ACK.

I also saw this issue last week, thanks for fix.

achow101 pushed a commit to achow101/bitcoin that referenced this pull request Mar 13, 2018
0eb84f3 test: Use wait_until to ensure ping goes out (Ben Woosley)

Pull request description:

  Intermittent failure evident here:
  https://travis-ci.org/bitcoin/bitcoin/jobs/344021180

Tree-SHA512: 8d3cbc55563160390d3918eb0b22348990cd81ad35c0563033f19142cb43b86a150fecc7df2196209ba00aaa805c67285451e582f387f8dac22d5e44d54e8a0d
@maflcko maflcko merged commit 0eb84f3 into bitcoin:master Mar 13, 2018
@maflcko
Copy link
Member

maflcko commented Mar 13, 2018

utACK 0eb84f3

@Empact Empact deleted the ping-timing branch March 19, 2018 06:07
laanwj added a commit that referenced this pull request Mar 19, 2018
9d7f839 test: Use os.path.join consistently in feature_pruning tests (Ben Woosley)
81b0822 test: Use wait_until in tests where time was used for polling (Ben Woosley)

Pull request description:

  This is prompted by and builds on #12545, a nice cleanup / consolidation of patterns.

  In cases where the exception message was meaningful, I tried to represent it as well in a comment.

  I expect #12545 will go in first, but I'm happy to squash them if that's preferred.

Tree-SHA512: 7a861244001c87fd6b59b6bc248ee741ac8178f7255d6f1fda39bc693c5ff3b7de5f53d13afe9829aef6ea69153481edb0a9d5bc07c36c4f66b4315edd180bb4
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Apr 20, 2018
HashUnlimited pushed a commit to chaincoin/chaincoin that referenced this pull request May 13, 2018
codablock pushed a commit to codablock/dash that referenced this pull request Oct 22, 2019
0eb84f3 test: Use wait_until to ensure ping goes out (Ben Woosley)

Pull request description:

  Intermittent failure evident here:
  https://travis-ci.org/bitcoin/bitcoin/jobs/344021180

Tree-SHA512: 8d3cbc55563160390d3918eb0b22348990cd81ad35c0563033f19142cb43b86a150fecc7df2196209ba00aaa805c67285451e582f387f8dac22d5e44d54e8a0d
barrystyle pushed a commit to PACGlobalOfficial/PAC that referenced this pull request Jan 22, 2020
0eb84f3 test: Use wait_until to ensure ping goes out (Ben Woosley)

Pull request description:

  Intermittent failure evident here:
  https://travis-ci.org/bitcoin/bitcoin/jobs/344021180

Tree-SHA512: 8d3cbc55563160390d3918eb0b22348990cd81ad35c0563033f19142cb43b86a150fecc7df2196209ba00aaa805c67285451e582f387f8dac22d5e44d54e8a0d
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Mar 14, 2020
9d7f839 test: Use os.path.join consistently in feature_pruning tests (Ben Woosley)
81b0822 test: Use wait_until in tests where time was used for polling (Ben Woosley)

Pull request description:

  This is prompted by and builds on bitcoin#12545, a nice cleanup / consolidation of patterns.

  In cases where the exception message was meaningful, I tried to represent it as well in a comment.

  I expect bitcoin#12545 will go in first, but I'm happy to squash them if that's preferred.

Tree-SHA512: 7a861244001c87fd6b59b6bc248ee741ac8178f7255d6f1fda39bc693c5ff3b7de5f53d13afe9829aef6ea69153481edb0a9d5bc07c36c4f66b4315edd180bb4
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Mar 19, 2020
9d7f839 test: Use os.path.join consistently in feature_pruning tests (Ben Woosley)
81b0822 test: Use wait_until in tests where time was used for polling (Ben Woosley)

Pull request description:

  This is prompted by and builds on bitcoin#12545, a nice cleanup / consolidation of patterns.

  In cases where the exception message was meaningful, I tried to represent it as well in a comment.

  I expect bitcoin#12545 will go in first, but I'm happy to squash them if that's preferred.

Tree-SHA512: 7a861244001c87fd6b59b6bc248ee741ac8178f7255d6f1fda39bc693c5ff3b7de5f53d13afe9829aef6ea69153481edb0a9d5bc07c36c4f66b4315edd180bb4
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Mar 21, 2020
9d7f839 test: Use os.path.join consistently in feature_pruning tests (Ben Woosley)
81b0822 test: Use wait_until in tests where time was used for polling (Ben Woosley)

Pull request description:

  This is prompted by and builds on bitcoin#12545, a nice cleanup / consolidation of patterns.

  In cases where the exception message was meaningful, I tried to represent it as well in a comment.

  I expect bitcoin#12545 will go in first, but I'm happy to squash them if that's preferred.

Tree-SHA512: 7a861244001c87fd6b59b6bc248ee741ac8178f7255d6f1fda39bc693c5ff3b7de5f53d13afe9829aef6ea69153481edb0a9d5bc07c36c4f66b4315edd180bb4
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Mar 24, 2020
9d7f839 test: Use os.path.join consistently in feature_pruning tests (Ben Woosley)
81b0822 test: Use wait_until in tests where time was used for polling (Ben Woosley)

Pull request description:

  This is prompted by and builds on bitcoin#12545, a nice cleanup / consolidation of patterns.

  In cases where the exception message was meaningful, I tried to represent it as well in a comment.

  I expect bitcoin#12545 will go in first, but I'm happy to squash them if that's preferred.

Tree-SHA512: 7a861244001c87fd6b59b6bc248ee741ac8178f7255d6f1fda39bc693c5ff3b7de5f53d13afe9829aef6ea69153481edb0a9d5bc07c36c4f66b4315edd180bb4
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants