Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented May 23, 2020

Using the global wait_until makes it impossible to adjust the timeout based on the hardware the test is running on.

Fix that by using the mininode member function.

So for example, ./test/functional/p2p_getdata.py --timeout-factor=0.04 gives a timeout of 2.4 seconds.

@fanquake fanquake added the Tests label May 23, 2020
@maflcko maflcko force-pushed the 2005-testWaitUntilGetdata branch from faa8646 to fa80b47 Compare May 23, 2020 14:01
@laanwj
Copy link
Member

laanwj commented May 26, 2020

ACK fa80b47

@laanwj laanwj merged commit 4af01b3 into bitcoin:master May 26, 2020
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 27, 2020
fa80b47 test: Remove global wait_until from p2p_getdata (MarcoFalke)
999922b test: Default mininode.wait_until timeout to 60s (MarcoFalke)
fab4737 test: pep-8 p2p_getdata.py (MarcoFalke)

Pull request description:

  Using the global wait_until makes it impossible to adjust the timeout based on the hardware the test is running on.

  Fix that by using the mininode member function.

  So for example, `./test/functional/p2p_getdata.py  --timeout-factor=0.04` gives a timeout of 2.4 seconds.

ACKs for top commit:
  laanwj:
    ACK fa80b47

Tree-SHA512: ebb1b7860a64451de2b8ee9a0966faddb13b84af711f6744e8260d7c9bc0b382e8fb259897df5212190821e850ed30d4d5c2d7af45a97f207fd4511b06b6674a
@maflcko maflcko deleted the 2005-testWaitUntilGetdata branch May 27, 2020 14:27
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Feb 4, 2021
Summary:
> Using the global wait_until makes it impossible to adjust the timeout based on the hardware the test is running on.
>
> Fix that by using the mininode member function.

This is a backport of Core [[bitcoin/bitcoin#19060 | PR19060]]

Test Plan: ninja check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D9164
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
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.

3 participants