aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_startupnotify.py
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-01-05 09:25:43 +0800
committerfanquake <fanquake@gmail.com>2022-01-05 09:25:43 +0800
commit96eb0093d07c58ad3b02c49a5a4385da37a8e337 (patch)
treebbba453b3a3b85ebc501970e178313ec836a2570 /test/functional/feature_startupnotify.py
parent1aabbf33d74bae9cdd0523f95e2e8212439792cb (diff)
downloadbitcoin-96eb0093d07c58ad3b02c49a5a4385da37a8e337.tar.xz
test: wait rather than assert presence of file in startupnotify test
Should fix #23967.
Diffstat (limited to 'test/functional/feature_startupnotify.py')
-rwxr-xr-xtest/functional/feature_startupnotify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/feature_startupnotify.py b/test/functional/feature_startupnotify.py
index 71135dcd3b..c6aa837768 100755
--- a/test/functional/feature_startupnotify.py
+++ b/test/functional/feature_startupnotify.py
@@ -26,7 +26,7 @@ class StartupNotifyTest(BitcoinTestFramework):
self.log.info("Test -startupnotify command is run when node starts")
self.restart_node(0, extra_args=[f"-startupnotify=echo '{FILE_NAME}' >> {NODE_DIR}/{FILE_NAME}"])
- assert os.path.exists(tmpdir_file)
+ self.wait_until(lambda: os.path.exists(tmpdir_file))
self.log.info("Test -startupnotify is executed once")
with open(tmpdir_file, "r", encoding="utf8") as f: