Page MenuHomePhabricator

test: Update wait_until usage in tests not to use the one from utils
ClosedPublic

Authored by PiRK on Sep 16 2021, 11:39.

Details

Summary

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

test: Update wait_until usage in tests not to use the one from utils

Replace "wait_until()" usage from utils, with the ones from BitcoinTestFramework and P2PInterface.
closes #19080

test: Add docstring to wait_until() in util.py to warn about its usage

This is a backport of core#19752

Test Plan

ninja check-functional-extended

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Sep 16 2021, 11:39
Fabien requested changes to this revision.Sep 16 2021, 12:15
Fabien added a subscriber: Fabien.

The PR number is wrong

This revision now requires changes to proceed.Sep 16 2021, 12:15

Thanks. I fixed the description.

Btw, I just noticed that I forgot the abc_* tests. I will change them in a separate revision, because this is already very large to review.

PiRK requested review of this revision.Sep 16 2021, 12:43
This revision is now accepted and ready to land.Sep 16 2021, 13:32