diff options
| author | Chun Kuan Lee <[email protected]> | 2018-10-12 05:57:58 +0800 |
|---|---|---|
| committer | Chun Kuan Lee <[email protected]> | 2018-10-12 05:57:58 +0800 |
| commit | ca6d86c3221fbeab63f451e1fb901a68d2c4a1aa (patch) | |
| tree | 9dd39ba950941af81ff604827fa616c06556f742 | |
| parent | Merge #14373: Consistency fixes for RPC descriptions (diff) | |
| download | discoin-ca6d86c3221fbeab63f451e1fb901a68d2c4a1aa.tar.xz discoin-ca6d86c3221fbeab63f451e1fb901a68d2c4a1aa.zip | |
tests: Stop node before removing the notification file
| -rwxr-xr-x | test/functional/feature_notifications.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/feature_notifications.py b/test/functional/feature_notifications.py index 90dc4c8e2..d8083b284 100755 --- a/test/functional/feature_notifications.py +++ b/test/functional/feature_notifications.py @@ -51,12 +51,13 @@ class NotificationsTest(BitcoinTestFramework): # directory content should equal the generated transaction hashes txids_rpc = list(map(lambda t: t['txid'], self.nodes[1].listtransactions("*", block_count))) assert_equal(sorted(txids_rpc), sorted(os.listdir(self.walletnotify_dir))) + self.stop_node(1) for tx_file in os.listdir(self.walletnotify_dir): os.remove(os.path.join(self.walletnotify_dir, tx_file)) self.log.info("test -walletnotify after rescan") # restart node to rescan to force wallet notifications - self.restart_node(1) + self.start_node(1) connect_nodes_bi(self.nodes, 0, 1) wait_until(lambda: len(os.listdir(self.walletnotify_dir)) == block_count, timeout=10) |