@@ -46,14 +46,14 @@ async fn disconnect() {
4646 peer2. client . disconnect ( peer1. peer_id ) . await . unwrap ( ) ;
4747
4848 peer1
49- . wait_for_test_event ( move |e| match e {
49+ . wait_for_core_test_event ( move |e| match e {
5050 TestEvent :: ConnectionClosed { remote } if remote == peer2. peer_id => Some ( ( ) ) ,
5151 _ => None ,
5252 } )
5353 . await ;
5454
5555 peer2
56- . wait_for_test_event ( move |e| match e {
56+ . wait_for_core_test_event ( move |e| match e {
5757 TestEvent :: ConnectionClosed { remote } if remote == peer1. peer_id => Some ( ( ) ) ,
5858 _ => None ,
5959 } )
@@ -102,17 +102,17 @@ async fn periodic_bootstrap() {
102102
103103 let peer_id2 = peer2. peer_id ;
104104
105- let peer2_added_to_dht_of_peer1 = peer1. wait_for_test_event ( move |e| match e {
105+ let peer2_added_to_dht_of_peer1 = peer1. wait_for_core_test_event ( move |e| match e {
106106 TestEvent :: PeerAddedToDHT { remote } if remote == peer_id2 => Some ( ( ) ) ,
107107 _ => None ,
108108 } ) ;
109109
110110 join ( peer2_added_to_dht_of_peer1, async {
111111 peer2
112- . wait_for_test_event ( filter_kademlia_bootstrap_completed)
112+ . wait_for_core_test_event ( filter_kademlia_bootstrap_completed)
113113 . await ;
114114 peer2
115- . wait_for_test_event ( filter_kademlia_bootstrap_completed)
115+ . wait_for_core_test_event ( filter_kademlia_bootstrap_completed)
116116 . await ;
117117 } )
118118 . await ;
@@ -155,14 +155,14 @@ async fn reconnect_too_quickly() {
155155 . unwrap ( ) ;
156156
157157 peer1
158- . wait_for_test_event ( move |e| match e {
158+ . wait_for_core_test_event ( move |e| match e {
159159 TestEvent :: ConnectionEstablished { remote, .. } if remote == peer2. peer_id => Some ( ( ) ) ,
160160 _ => None ,
161161 } )
162162 . await ;
163163
164164 peer2
165- . wait_for_test_event ( move |e| match e {
165+ . wait_for_core_test_event ( move |e| match e {
166166 TestEvent :: ConnectionEstablished { remote, .. } if remote == peer1. peer_id => Some ( ( ) ) ,
167167 _ => None ,
168168 } )
@@ -178,14 +178,14 @@ async fn reconnect_too_quickly() {
178178 peer1. client . disconnect ( peer2. peer_id ) . await . unwrap ( ) ;
179179
180180 peer1
181- . wait_for_test_event ( move |e| match e {
181+ . wait_for_core_test_event ( move |e| match e {
182182 TestEvent :: ConnectionClosed { remote } if remote == peer2. peer_id => Some ( ( ) ) ,
183183 _ => None ,
184184 } )
185185 . await ;
186186
187187 peer2
188- . wait_for_test_event ( move |e| match e {
188+ . wait_for_core_test_event ( move |e| match e {
189189 TestEvent :: ConnectionClosed { remote } if remote == peer1. peer_id => Some ( ( ) ) ,
190190 _ => None ,
191191 } )
@@ -202,14 +202,14 @@ async fn reconnect_too_quickly() {
202202
203203 // The connection is established.
204204 peer1
205- . wait_for_test_event ( move |e| match e {
205+ . wait_for_core_test_event ( move |e| match e {
206206 TestEvent :: ConnectionEstablished { remote, .. } if remote == peer2. peer_id => Some ( ( ) ) ,
207207 _ => None ,
208208 } )
209209 . await ;
210210
211211 peer2
212- . wait_for_test_event ( move |e| match e {
212+ . wait_for_core_test_event ( move |e| match e {
213213 TestEvent :: ConnectionEstablished { remote, .. } if remote == peer1. peer_id => Some ( ( ) ) ,
214214 _ => None ,
215215 } )
@@ -241,14 +241,14 @@ async fn duplicate_connection() {
241241 . unwrap ( ) ;
242242
243243 peer1
244- . wait_for_test_event ( move |e| match e {
244+ . wait_for_core_test_event ( move |e| match e {
245245 TestEvent :: ConnectionEstablished { remote, .. } if remote == peer2. peer_id => Some ( ( ) ) ,
246246 _ => None ,
247247 } )
248248 . await ;
249249
250250 peer2
251- . wait_for_test_event ( move |e| match e {
251+ . wait_for_core_test_event ( move |e| match e {
252252 TestEvent :: ConnectionEstablished { remote, .. } if remote == peer1. peer_id => Some ( ( ) ) ,
253253 _ => None ,
254254 } )
@@ -267,14 +267,14 @@ async fn duplicate_connection() {
267267 . unwrap ( ) ;
268268
269269 peer1_copy
270- . wait_for_test_event ( move |e| match e {
270+ . wait_for_core_test_event ( move |e| match e {
271271 TestEvent :: ConnectionEstablished { remote, .. } if remote == peer2. peer_id => Some ( ( ) ) ,
272272 _ => None ,
273273 } )
274274 . await ;
275275
276276 peer1_copy
277- . wait_for_test_event ( move |e| match e {
277+ . wait_for_core_test_event ( move |e| match e {
278278 TestEvent :: ConnectionClosed { remote, .. } if remote == peer2. peer_id => Some ( ( ) ) ,
279279 _ => None ,
280280 } )
@@ -364,7 +364,7 @@ async fn outbound_peer_eviction() {
364364 assert ! ( peers. contains_key( & inbound1. peer_id) ) ;
365365
366366 // Ensure that outbound1 actually got disconnected.
367- peer. wait_for_test_event ( move |e| match e {
367+ peer. wait_for_core_test_event ( move |e| match e {
368368 TestEvent :: ConnectionClosed { remote, .. } if remote == outbound1. peer_id => Some ( ( ) ) ,
369369 _ => None ,
370370 } )
@@ -443,7 +443,7 @@ async fn inbound_peer_eviction() {
443443
444444 // Ensure that a peer got disconnected.
445445 let disconnected = peer
446- . wait_for_test_event ( |e| match e {
446+ . wait_for_core_test_event ( |e| match e {
447447 TestEvent :: ConnectionClosed { remote, .. }
448448 if inbound_peers. iter ( ) . take ( 25 ) . any ( |p| p. peer_id == remote) =>
449449 {
@@ -496,7 +496,7 @@ async fn evicted_peer_reconnection() {
496496
497497 // Check that peer2 got evicted.
498498 peer1
499- . wait_for_test_event ( |e| match e {
499+ . wait_for_core_test_event ( |e| match e {
500500 TestEvent :: ConnectionClosed { remote, .. } if remote == peer2. peer_id => Some ( ( ) ) ,
501501 _ => None ,
502502 } )
@@ -517,7 +517,7 @@ async fn evicted_peer_reconnection() {
517517 . await
518518 . unwrap ( ) ;
519519 peer2
520- . wait_for_test_event ( |e| match e {
520+ . wait_for_core_test_event ( |e| match e {
521521 TestEvent :: ConnectionClosed { remote, .. } if remote == peer1. peer_id => Some ( ( ) ) ,
522522 _ => None ,
523523 } )
@@ -529,7 +529,7 @@ async fn evicted_peer_reconnection() {
529529
530530 // peer3 gets evicted.
531531 peer1
532- . wait_for_test_event ( |e| match e {
532+ . wait_for_core_test_event ( |e| match e {
533533 TestEvent :: ConnectionClosed { remote, .. } if remote == peer3. peer_id => Some ( ( ) ) ,
534534 _ => None ,
535535 } )
0 commit comments