diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-26 08:22:47 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-26 08:22:46 +0200 |
commit | fa4aec2b26696cc16dc44c6425f7dca3ef91c8ee (patch) | |
tree | d3dea6c904acb597402f07c5ad87d69a2d161f2a /test | |
parent | 8f80092d78f758fdb2e79e2a832a0c7a26fa2da1 (diff) |
test: Fix feature_notifications.py intermittent issue
Diffstat (limited to 'test')
-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' |