@@ -37,7 +37,7 @@ def run_test(self):
37
37
38
38
# file content should equal the generated blocks hashes
39
39
with open (self .block_filename , 'r' ) as f :
40
- assert_equal (sorted (blocks ), sorted (f .read ().splitlines ()))
40
+ assert_equal (sorted (blocks ), sorted (l . strip () for l in f .read ().splitlines ()))
41
41
42
42
self .log .info ("test -walletnotify" )
43
43
# wait at most 10 seconds for expected file size before reading the content
@@ -46,7 +46,7 @@ def run_test(self):
46
46
# file content should equal the generated transaction hashes
47
47
txids_rpc = list (map (lambda t : t ['txid' ], self .nodes [1 ].listtransactions ("*" , block_count )))
48
48
with open (self .tx_filename , 'r' ) as f :
49
- assert_equal (sorted (txids_rpc ), sorted (f .read ().splitlines ()))
49
+ assert_equal (sorted (txids_rpc ), sorted (l . strip () for l in f .read ().splitlines ()))
50
50
os .remove (self .tx_filename )
51
51
52
52
self .log .info ("test -walletnotify after rescan" )
@@ -59,7 +59,7 @@ def run_test(self):
59
59
# file content should equal the generated transaction hashes
60
60
txids_rpc = list (map (lambda t : t ['txid' ], self .nodes [1 ].listtransactions ("*" , block_count )))
61
61
with open (self .tx_filename , 'r' ) as f :
62
- assert_equal (sorted (txids_rpc ), sorted (f .read ().splitlines ()))
62
+ assert_equal (sorted (txids_rpc ), sorted (l . strip () for l in f .read ().splitlines ()))
63
63
64
64
# Mine another 41 up-version blocks. -alertnotify should trigger on the 51st.
65
65
self .log .info ("test -alertnotify" )
0 commit comments