File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,13 @@ def test_buffer(self):
64
64
conn = self .nodes [0 ].add_p2p_connection (P2PDataStore ())
65
65
# Create valid message
66
66
msg = conn .build_message (msg_ping (nonce = 12345 ))
67
- cut_pos = 12 # Chosen at an arbitrary position within the header
67
+ cut_pos = 12 # Chosen at an arbitrary position within the header
68
68
# Send message in two pieces
69
- before = int ( self .nodes [0 ].getnettotals ()['totalbytesrecv' ])
69
+ before = self .nodes [0 ].getnettotals ()['totalbytesrecv' ]
70
70
conn .send_raw_message (msg [:cut_pos ])
71
71
# Wait until node has processed the first half of the message
72
- self .wait_until (lambda : int ( self .nodes [0 ].getnettotals ()['totalbytesrecv' ]) != before )
73
- middle = int ( self .nodes [0 ].getnettotals ()['totalbytesrecv' ])
72
+ self .wait_until (lambda : self .nodes [0 ].getnettotals ()['totalbytesrecv' ] != before )
73
+ middle = self .nodes [0 ].getnettotals ()['totalbytesrecv' ]
74
74
# If this assert fails, we've hit an unlikely race
75
75
# where the test framework sent a message in between the two halves
76
76
assert_equal (middle , before + cut_pos )
You can’t perform that action at this time.
0 commit comments