Skip to content

Commit 683dda2

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#21777: test: Fix feature_notifications.py intermittent issue
fa4aec2 test: Fix feature_notifications.py intermittent issue (MarcoFalke) Pull request description: Fixes #21683 Top commit has no ACKs. Tree-SHA512: 256806d82877477f4b3d795658f61127c0de4eff07216f6071f40a8ec1f5d43f3c587f35dd436d480dc261ef6646ac5547db104d22f3fcfeeb61bbdbe04bcc31
2 parents 74a960a + fa4aec2 commit 683dda2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/feature_notifications.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ def expect_wallet_notify(self, tx_details):
166166
# Should now verify contents of each file
167167
for tx_id, blockheight, blockhash in tx_details:
168168
fname = os.path.join(self.walletnotify_dir, notify_outputname(self.wallet, tx_id))
169+
# Wait for the cached writes to hit storage
170+
self.wait_until(lambda: os.path.getsize(fname) > 0, timeout=10)
169171
with open(fname, 'rt', encoding='utf-8') as f:
170172
text = f.read()
171173
# Universal newline ensures '\n' on 'nt'

0 commit comments

Comments
 (0)