mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Merge bitcoin/bitcoin#23979: test: wait for rather than assert presence of file in startupnotify test
96eb0093d07c58ad3b02c49a5a4385da37a8e337 test: wait rather than assert presence of file in startupnotify test (fanquake) Pull request description: Should fix #23967. ACKs for top commit: brunoerg: crACK 96eb0093d07c58ad3b02c49a5a4385da37a8e337 kristapsk: utACK 96eb0093d07c58ad3b02c49a5a4385da37a8e337 Tree-SHA512: 9107970e45c027cfc6c6cbfcfd5a7d9f5956259bbbb11f5b180c3947126e42e62c0f8ffd69cf7b39b51c9c5b4fedbb753839d59aebe876be68c1484bb6065819
This commit is contained in:
parent
2ec5940399
commit
ee9b3cdb0e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user