diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-26 18:04:19 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-26 18:04:22 +0200 |
commit | 683dda2a70e7a210996fa34be23bd0c563971ba9 (patch) | |
tree | 87e28a200168ea221b5b9a0161faf0bb9e985dd2 | |
parent | 74a960a220a32b4e240551ba992d5199edac38fc (diff) | |
parent | fa4aec2b26696cc16dc44c6425f7dca3ef91c8ee (diff) |
Merge bitcoin/bitcoin#21777: test: Fix feature_notifications.py intermittent issue
fa4aec2b26696cc16dc44c6425f7dca3ef91c8ee test: Fix feature_notifications.py intermittent issue (MarcoFalke)
Pull request description:
Fixes #21683
Top commit has no ACKs.
Tree-SHA512: 256806d82877477f4b3d795658f61127c0de4eff07216f6071f40a8ec1f5d43f3c587f35dd436d480dc261ef6646ac5547db104d22f3fcfeeb61bbdbe04bcc31
-rwxr-xr-x | test/functional/feature_notifications.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/feature_notifications.py b/test/functional/feature_notifications.py index 4e2de1daf4..6fc8773ee3 100755 --- a/test/functional/feature_notifications.py +++ b/test/functional/feature_notifications.py @@ -166,6 +166,8 @@ class NotificationsTest(BitcoinTestFramework): # Should now verify contents of each file for tx_id, blockheight, blockhash in tx_details: fname = os.path.join(self.walletnotify_dir, notify_outputname(self.wallet, tx_id)) + # Wait for the cached writes to hit storage + self.wait_until(lambda: os.path.getsize(fname) > 0, timeout=10) with open(fname, 'rt', encoding='utf-8') as f: text = f.read() # Universal newline ensures '\n' on 'nt' |