@@ -1305,8 +1305,8 @@ mod tests {
1305
1305
// Create 2 peers with custom TestRoutingMessageHandlers and connect them.
1306
1306
let ( chan_handlers, routing_handlers) = create_chan_handlers ( 2 ) ;
1307
1307
let peers = create_network ( 2 , & chan_handlers, & routing_handlers) ;
1308
- routing_handlers[ 0 ] . request_full_sync . store ( 1 , Ordering :: Release ) ;
1309
- routing_handlers[ 1 ] . request_full_sync . store ( 1 , Ordering :: Release ) ;
1308
+ routing_handlers[ 0 ] . request_full_sync . store ( true , Ordering :: Release ) ;
1309
+ routing_handlers[ 1 ] . request_full_sync . store ( true , Ordering :: Release ) ;
1310
1310
1311
1311
// By calling establish_connect, we trigger do_attempt_write_data between
1312
1312
// the peers. Previously this function would mistakenly enter an infinite loop
@@ -1333,7 +1333,7 @@ mod tests {
1333
1333
// Inbound peer 0 requests initial_routing_sync, but outbound peer 1 does not.
1334
1334
{
1335
1335
let ( chan_handlers, routing_handlers) = create_chan_handlers ( 2 ) ;
1336
- routing_handlers[ 0 ] . request_full_sync . store ( 1 , Ordering :: Release ) ;
1336
+ routing_handlers[ 0 ] . request_full_sync . store ( true , Ordering :: Release ) ;
1337
1337
let peers = create_network ( 2 , & chan_handlers, & routing_handlers) ;
1338
1338
let ( fd_0_to_1, fd_1_to_0) = establish_connection_and_read_events ( & peers[ 0 ] , & peers[ 1 ] ) ;
1339
1339
@@ -1350,7 +1350,7 @@ mod tests {
1350
1350
// Outbound peer 1 requests initial_routing_sync, but inbound peer 0 does not.
1351
1351
{
1352
1352
let ( chan_handlers, routing_handlers) = create_chan_handlers ( 2 ) ;
1353
- routing_handlers[ 1 ] . request_full_sync . store ( 1 , Ordering :: Release ) ;
1353
+ routing_handlers[ 1 ] . request_full_sync . store ( true , Ordering :: Release ) ;
1354
1354
let peers = create_network ( 2 , & chan_handlers, & routing_handlers) ;
1355
1355
let ( fd_0_to_1, fd_1_to_0) = establish_connection_and_read_events ( & peers[ 0 ] , & peers[ 1 ] ) ;
1356
1356
0 commit comments