Skip to content

Commit 96eb009

Browse files
committed
test: wait rather than assert presence of file in startupnotify test
Should fix #23967.
1 parent 1aabbf3 commit 96eb009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/feature_startupnotify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def run_test(self):
2626

2727
self.log.info("Test -startupnotify command is run when node starts")
2828
self.restart_node(0, extra_args=[f"-startupnotify=echo '{FILE_NAME}' >> {NODE_DIR}/{FILE_NAME}"])
29-
assert os.path.exists(tmpdir_file)
29+
self.wait_until(lambda: os.path.exists(tmpdir_file))
3030

3131
self.log.info("Test -startupnotify is executed once")
3232
with open(tmpdir_file, "r", encoding="utf8") as f:

0 commit comments

Comments
 (0)