@@ -474,7 +474,7 @@ mod for_all_config_modes {
474474 let previously_announced_peer = PeerBuilder :: default ( ) . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) ) . build ( ) ;
475475
476476 // Add the Peer 1
477- env. add_torrent_peer ( & info_hash, & previously_announced_peer) ;
477+ env. add_torrent_peer ( & info_hash, & previously_announced_peer) . await ;
478478
479479 // Announce the new Peer 2. This new peer is non included on the response peer list
480480 let response = Client :: new ( * env. bind_address ( ) )
@@ -517,7 +517,7 @@ mod for_all_config_modes {
517517 . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) )
518518 . with_peer_addr ( & SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 0x69 , 0x69 , 0x69 , 0x69 ) ) , 8080 ) )
519519 . build ( ) ;
520- env. add_torrent_peer ( & info_hash, & peer_using_ipv4) ;
520+ env. add_torrent_peer ( & info_hash, & peer_using_ipv4) . await ;
521521
522522 // Announce a peer using IPV6
523523 let peer_using_ipv6 = PeerBuilder :: default ( )
@@ -527,7 +527,7 @@ mod for_all_config_modes {
527527 8080 ,
528528 ) )
529529 . build ( ) ;
530- env. add_torrent_peer ( & info_hash, & peer_using_ipv6) ;
530+ env. add_torrent_peer ( & info_hash, & peer_using_ipv6) . await ;
531531
532532 // Announce the new Peer.
533533 let response = Client :: new ( * env. bind_address ( ) )
@@ -625,7 +625,7 @@ mod for_all_config_modes {
625625 let previously_announced_peer = PeerBuilder :: default ( ) . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) ) . build ( ) ;
626626
627627 // Add the Peer 1
628- env. add_torrent_peer ( & info_hash, & previously_announced_peer) ;
628+ env. add_torrent_peer ( & info_hash, & previously_announced_peer) . await ;
629629
630630 // Announce the new Peer 2 accepting compact responses
631631 let response = Client :: new ( * env. bind_address ( ) )
@@ -666,7 +666,7 @@ mod for_all_config_modes {
666666 let previously_announced_peer = PeerBuilder :: default ( ) . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) ) . build ( ) ;
667667
668668 // Add the Peer 1
669- env. add_torrent_peer ( & info_hash, & previously_announced_peer) ;
669+ env. add_torrent_peer ( & info_hash, & previously_announced_peer) . await ;
670670
671671 // Announce the new Peer 2 without passing the "compact" param
672672 // By default it should respond with the compact peer list
@@ -1010,7 +1010,8 @@ mod for_all_config_modes {
10101010 . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) )
10111011 . with_bytes_pending_to_download ( 1 )
10121012 . build ( ) ,
1013- ) ;
1013+ )
1014+ . await ;
10141015
10151016 let response = Client :: new ( * env. bind_address ( ) )
10161017 . scrape (
@@ -1050,7 +1051,8 @@ mod for_all_config_modes {
10501051 . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) )
10511052 . with_no_bytes_pending_to_download ( )
10521053 . build ( ) ,
1053- ) ;
1054+ )
1055+ . await ;
10541056
10551057 let response = Client :: new ( * env. bind_address ( ) )
10561058 . scrape (
@@ -1282,7 +1284,8 @@ mod configured_as_whitelisted {
12821284 . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) )
12831285 . with_bytes_pending_to_download ( 1 )
12841286 . build ( ) ,
1285- ) ;
1287+ )
1288+ . await ;
12861289
12871290 let response = Client :: new ( * env. bind_address ( ) )
12881291 . scrape (
@@ -1318,7 +1321,8 @@ mod configured_as_whitelisted {
13181321 . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) )
13191322 . with_bytes_pending_to_download ( 1 )
13201323 . build ( ) ,
1321- ) ;
1324+ )
1325+ . await ;
13221326
13231327 env. container
13241328 . tracker_core_container
@@ -1494,7 +1498,8 @@ mod configured_as_private {
14941498 . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) )
14951499 . with_bytes_pending_to_download ( 1 )
14961500 . build ( ) ,
1497- ) ;
1501+ )
1502+ . await ;
14981503
14991504 let response = Client :: new ( * env. bind_address ( ) )
15001505 . scrape (
@@ -1525,7 +1530,8 @@ mod configured_as_private {
15251530 . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) )
15261531 . with_bytes_pending_to_download ( 1 )
15271532 . build ( ) ,
1528- ) ;
1533+ )
1534+ . await ;
15291535
15301536 let expiring_key = env
15311537 . container
@@ -1576,7 +1582,8 @@ mod configured_as_private {
15761582 . with_peer_id ( & PeerId ( * b"-qB00000000000000001" ) )
15771583 . with_bytes_pending_to_download ( 1 )
15781584 . build ( ) ,
1579- ) ;
1585+ )
1586+ . await ;
15801587
15811588 let false_key: Key = "YZSl4lMZupRuOpSRC3krIKR5BPB14nrJ" . parse ( ) . unwrap ( ) ;
15821589
0 commit comments