File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
from test_framework .test_framework import BitcoinTestFramework
10
10
from test_framework .test_node import ErrorMatch
11
- from test_framework .util import assert_equal
12
11
13
12
14
13
class UacommentTest (BitcoinTestFramework ):
@@ -18,12 +17,12 @@ def set_test_params(self):
18
17
19
18
def run_test (self ):
20
19
self .log .info ("test multiple -uacomment" )
21
- test_uacomment = self .nodes [0 ].getnetworkinfo ()["subversion" ][ - 12 : - 1 ]
22
- assert_equal ( test_uacomment , "(testnode0)" )
20
+ test_uacomment = self .nodes [0 ].getnetworkinfo ()["subversion" ]
21
+ assert "(testnode0)" in test_uacomment
23
22
24
23
self .restart_node (0 , ["-uacomment=foo" ])
25
- foo_uacomment = self .nodes [0 ].getnetworkinfo ()["subversion" ][ - 17 : - 1 ]
26
- assert_equal ( foo_uacomment , "(testnode0; foo)" )
24
+ foo_uacomment = self .nodes [0 ].getnetworkinfo ()["subversion" ]
25
+ assert "(testnode0; foo)" in foo_uacomment
27
26
28
27
self .log .info ("test -uacomment max length" )
29
28
self .stop_node (0 )
You can’t perform that action at this time.
0 commit comments