File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ def run_test(self):
73
73
peers = []
74
74
75
75
self .log .info ("Check that a staller does not get disconnected if the 1024 block lookahead buffer is filled" )
76
+ self .mocktime = int (time .time ()) + 1
76
77
for id in range (NUM_PEERS ):
77
78
peers .append (node .add_outbound_p2p_connection (P2PStaller (stall_block ), p2p_idx = id , connection_type = "outbound-full-relay" ))
78
79
peers [- 1 ].block_store = block_dict
@@ -85,7 +86,7 @@ def run_test(self):
85
86
86
87
self .all_sync_send_with_ping (peers )
87
88
# If there was a peer marked for stalling, it would get disconnected
88
- self .mocktime = int ( time . time ()) + 3
89
+ self .mocktime += 3
89
90
node .setmocktime (self .mocktime )
90
91
self .all_sync_send_with_ping (peers )
91
92
assert_equal (node .num_test_p2p_connections (), NUM_PEERS )
You can’t perform that action at this time.
0 commit comments