Skip to content

Commit fa4aec2

Browse files
author
MarcoFalke
committed
test: Fix feature_notifications.py intermittent issue
1 parent 8f80092 commit fa4aec2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/feature_notifications.py

+2
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)