@@ -152,7 +152,7 @@ async fn test_pair_priority() -> Result<()> {
152
152
local: host_local. clone( ) ,
153
153
..Default :: default ( )
154
154
}
155
- . to_string( ) ,
155
+ . to_string( ) ,
156
156
"Unexpected bestPair {best_pair} (expected remote: {remote})" ,
157
157
) ;
158
158
} else {
@@ -662,7 +662,7 @@ async fn test_inbound_validity() -> Result<()> {
662
662
} ,
663
663
..Default :: default ( )
664
664
}
665
- . new_candidate_host ( ) ?,
665
+ . new_candidate_host ( ) ?,
666
666
) ;
667
667
668
668
//"Invalid Binding requests should be discarded"
@@ -1064,7 +1064,7 @@ async fn test_candidate_pair_stats() -> Result<()> {
1064
1064
} ,
1065
1065
..Default :: default ( )
1066
1066
}
1067
- . new_candidate_host ( ) ?,
1067
+ . new_candidate_host ( ) ?,
1068
1068
) ;
1069
1069
1070
1070
let relay_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1080,7 +1080,7 @@ async fn test_candidate_pair_stats() -> Result<()> {
1080
1080
rel_port : 43210 ,
1081
1081
..Default :: default ( )
1082
1082
}
1083
- . new_candidate_relay ( ) ?,
1083
+ . new_candidate_relay ( ) ?,
1084
1084
) ;
1085
1085
1086
1086
let srflx_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1095,7 +1095,7 @@ async fn test_candidate_pair_stats() -> Result<()> {
1095
1095
rel_addr : "4.3.2.1" . to_owned ( ) ,
1096
1096
rel_port : 43212 ,
1097
1097
}
1098
- . new_candidate_server_reflexive ( ) ?,
1098
+ . new_candidate_server_reflexive ( ) ?,
1099
1099
) ;
1100
1100
1101
1101
let prflx_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1110,7 +1110,7 @@ async fn test_candidate_pair_stats() -> Result<()> {
1110
1110
rel_addr : "4.3.2.1" . to_owned ( ) ,
1111
1111
rel_port : 43211 ,
1112
1112
}
1113
- . new_candidate_peer_reflexive ( ) ?,
1113
+ . new_candidate_peer_reflexive ( ) ?,
1114
1114
) ;
1115
1115
1116
1116
let host_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1124,7 +1124,7 @@ async fn test_candidate_pair_stats() -> Result<()> {
1124
1124
} ,
1125
1125
..Default :: default ( )
1126
1126
}
1127
- . new_candidate_host ( ) ?,
1127
+ . new_candidate_host ( ) ?,
1128
1128
) ;
1129
1129
1130
1130
for remote in & [
@@ -1226,7 +1226,7 @@ async fn test_local_candidate_stats() -> Result<()> {
1226
1226
} ,
1227
1227
..Default :: default ( )
1228
1228
}
1229
- . new_candidate_host ( ) ?,
1229
+ . new_candidate_host ( ) ?,
1230
1230
) ;
1231
1231
1232
1232
let srflx_local: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1241,7 +1241,7 @@ async fn test_local_candidate_stats() -> Result<()> {
1241
1241
rel_addr : "4.3.2.1" . to_owned ( ) ,
1242
1242
rel_port : 43212 ,
1243
1243
}
1244
- . new_candidate_server_reflexive ( ) ?,
1244
+ . new_candidate_server_reflexive ( ) ?,
1245
1245
) ;
1246
1246
1247
1247
{
@@ -1319,7 +1319,7 @@ async fn test_remote_candidate_stats() -> Result<()> {
1319
1319
rel_port : 43210 ,
1320
1320
..Default :: default ( )
1321
1321
}
1322
- . new_candidate_relay ( ) ?,
1322
+ . new_candidate_relay ( ) ?,
1323
1323
) ;
1324
1324
1325
1325
let srflx_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1334,7 +1334,7 @@ async fn test_remote_candidate_stats() -> Result<()> {
1334
1334
rel_addr : "4.3.2.1" . to_owned ( ) ,
1335
1335
rel_port : 43212 ,
1336
1336
}
1337
- . new_candidate_server_reflexive ( ) ?,
1337
+ . new_candidate_server_reflexive ( ) ?,
1338
1338
) ;
1339
1339
1340
1340
let prflx_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1349,7 +1349,7 @@ async fn test_remote_candidate_stats() -> Result<()> {
1349
1349
rel_addr : "4.3.2.1" . to_owned ( ) ,
1350
1350
rel_port : 43211 ,
1351
1351
}
1352
- . new_candidate_peer_reflexive ( ) ?,
1352
+ . new_candidate_peer_reflexive ( ) ?,
1353
1353
) ;
1354
1354
1355
1355
let host_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1363,7 +1363,7 @@ async fn test_remote_candidate_stats() -> Result<()> {
1363
1363
} ,
1364
1364
..Default :: default ( )
1365
1365
}
1366
- . new_candidate_host ( ) ?,
1366
+ . new_candidate_host ( ) ?,
1367
1367
) ;
1368
1368
1369
1369
{
@@ -1465,7 +1465,7 @@ async fn test_init_ext_ip_mapping() -> Result<()> {
1465
1465
nat_1to1_ip_candidate_type : CandidateType :: Host ,
1466
1466
..Default :: default ( )
1467
1467
} )
1468
- . await ?;
1468
+ . await ?;
1469
1469
assert ! (
1470
1470
a. ext_ip_mapper. is_none( ) ,
1471
1471
"a.extIPMapper should be none by default"
@@ -1480,7 +1480,7 @@ async fn test_init_ext_ip_mapping() -> Result<()> {
1480
1480
candidate_types : vec ! [ CandidateType :: Relay ] ,
1481
1481
..Default :: default ( )
1482
1482
} )
1483
- . await
1483
+ . await
1484
1484
{
1485
1485
assert_eq ! (
1486
1486
Error :: ErrIneffectiveNat1to1IpMappingHost ,
@@ -1499,7 +1499,7 @@ async fn test_init_ext_ip_mapping() -> Result<()> {
1499
1499
candidate_types : vec ! [ CandidateType :: Relay ] ,
1500
1500
..Default :: default ( )
1501
1501
} )
1502
- . await
1502
+ . await
1503
1503
{
1504
1504
assert_eq ! (
1505
1505
Error :: ErrIneffectiveNat1to1IpMappingSrflx ,
@@ -1518,7 +1518,7 @@ async fn test_init_ext_ip_mapping() -> Result<()> {
1518
1518
multicast_dns_mode : MulticastDnsMode :: QueryAndGather ,
1519
1519
..Default :: default ( )
1520
1520
} )
1521
- . await
1521
+ . await
1522
1522
{
1523
1523
assert_eq ! (
1524
1524
Error :: ErrMulticastDnsWithNat1to1IpMapping ,
@@ -1535,7 +1535,7 @@ async fn test_init_ext_ip_mapping() -> Result<()> {
1535
1535
nat_1to1_ip_candidate_type : CandidateType :: Host ,
1536
1536
..Default :: default ( )
1537
1537
} )
1538
- . await
1538
+ . await
1539
1539
{
1540
1540
assert_eq ! (
1541
1541
Error :: ErrInvalidNat1to1IpMapping ,
@@ -1599,8 +1599,8 @@ async fn test_agent_credentials() -> Result<()> {
1599
1599
let a = Agent :: new ( AgentConfig :: default ( ) ) . await ?;
1600
1600
{
1601
1601
let ufrag_pwd = a. internal . ufrag_pwd . lock ( ) . await ;
1602
- assert ! ( ufrag_pwd. local_ufrag. as_bytes ( ) . len( ) * 8 >= 24 ) ;
1603
- assert ! ( ufrag_pwd. local_pwd. as_bytes ( ) . len( ) * 8 >= 128 ) ;
1602
+ assert ! ( ufrag_pwd. local_ufrag. len( ) * 8 >= 24 ) ;
1603
+ assert ! ( ufrag_pwd. local_pwd. len( ) * 8 >= 128 ) ;
1604
1604
}
1605
1605
a. close ( ) . await ?;
1606
1606
@@ -1613,7 +1613,7 @@ async fn test_agent_credentials() -> Result<()> {
1613
1613
local_ufrag : "xx" . to_owned ( ) ,
1614
1614
..Default :: default ( )
1615
1615
} )
1616
- . await
1616
+ . await
1617
1617
{
1618
1618
assert_eq ! ( Error :: ErrLocalUfragInsufficientBits , err) ;
1619
1619
} else {
@@ -1624,7 +1624,7 @@ async fn test_agent_credentials() -> Result<()> {
1624
1624
local_pwd : "xxxxxx" . to_owned ( ) ,
1625
1625
..Default :: default ( )
1626
1626
} )
1627
- . await
1627
+ . await
1628
1628
{
1629
1629
assert_eq ! ( Error :: ErrLocalPwdInsufficientBits , err) ;
1630
1630
} else {
@@ -1824,7 +1824,7 @@ async fn test_agent_restart_one_side() -> Result<()> {
1824
1824
..Default :: default ( )
1825
1825
} ) ,
1826
1826
)
1827
- . await ?;
1827
+ . await ?;
1828
1828
1829
1829
let ( cancel_tx, mut cancel_rx) = mpsc:: channel :: < ( ) > ( 1 ) ;
1830
1830
let cancel_tx = Arc :: new ( Mutex :: new ( Some ( cancel_tx) ) ) ;
@@ -1882,7 +1882,7 @@ async fn test_agent_restart_both_side() -> Result<()> {
1882
1882
..Default :: default ( )
1883
1883
} ) ,
1884
1884
)
1885
- . await ?;
1885
+ . await ?;
1886
1886
1887
1887
let conn_afirst_candidates =
1888
1888
generate_candidate_address_strings ( agent_a. get_local_candidates ( ) . await ) ;
@@ -2138,7 +2138,7 @@ async fn test_lite_lifecycle() -> Result<()> {
2138
2138
multicast_dns_mode : MulticastDnsMode :: Disabled ,
2139
2139
..Default :: default ( )
2140
2140
} )
2141
- . await ?,
2141
+ . await ?,
2142
2142
) ;
2143
2143
2144
2144
a_agent. on_connection_state_change ( a_notifier) ;
@@ -2159,7 +2159,7 @@ async fn test_lite_lifecycle() -> Result<()> {
2159
2159
check_interval : Duration :: from_millis ( 500 ) ,
2160
2160
..Default :: default ( )
2161
2161
} )
2162
- . await ?,
2162
+ . await ?,
2163
2163
) ;
2164
2164
2165
2165
let ( b_connected_tx, mut b_connected_rx) = mpsc:: channel :: < ( ) > ( 1 ) ;
0 commit comments