We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 296e882 + fac810b commit 61f3515Copy full SHA for 61f3515
test/functional/feature_startupnotify.py
@@ -29,9 +29,14 @@ def run_test(self):
29
self.wait_until(lambda: os.path.exists(tmpdir_file))
30
31
self.log.info("Test -startupnotify is executed once")
32
- with open(tmpdir_file, "r", encoding="utf8") as f:
33
- file_content = f.read()
34
- assert_equal(file_content.count(FILE_NAME), 1)
+
+ def get_count():
+ with open(tmpdir_file, "r", encoding="utf8") as f:
35
+ file_content = f.read()
36
+ return file_content.count(FILE_NAME)
37
38
+ self.wait_until(lambda: get_count() > 0)
39
+ assert_equal(get_count(), 1)
40
41
self.log.info("Test node is fully started")
42
assert_equal(self.nodes[0].getblockcount(), 200)
0 commit comments