Skip to content

Commit 45ed459

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#23979: test: wait for rather than assert presence of file in startupnotify test
96eb009 test: wait rather than assert presence of file in startupnotify test (fanquake) Pull request description: Should fix #23967. ACKs for top commit: brunoerg: crACK 96eb009 kristapsk: utACK 96eb009 Tree-SHA512: 9107970e45c027cfc6c6cbfcfd5a7d9f5956259bbbb11f5b180c3947126e42e62c0f8ffd69cf7b39b51c9c5b4fedbb753839d59aebe876be68c1484bb6065819
2 parents 3e5dd94 + 96eb009 commit 45ed459

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)