@@ -19,18 +19,18 @@ fn network__add_node() {
19
19
20
20
let dummy_peer = "192.0.2.1:8333" ;
21
21
22
- node. client . add_node ( dummy_peer, AddNodeCommand :: OneTry ) . expect ( "addnode onetry" ) ;
23
- node. client . add_node ( dummy_peer, AddNodeCommand :: Add ) . expect ( "addnode add" ) ;
24
- node. client . add_node ( dummy_peer, AddNodeCommand :: Remove ) . expect ( "addnode remove" ) ;
22
+ let _ : ( ) = node. client . add_node ( dummy_peer, AddNodeCommand :: OneTry ) . expect ( "addnode onetry" ) ;
23
+ let _ : ( ) = node. client . add_node ( dummy_peer, AddNodeCommand :: Add ) . expect ( "addnode add" ) ;
24
+ let _ : ( ) = node. client . add_node ( dummy_peer, AddNodeCommand :: Remove ) . expect ( "addnode remove" ) ;
25
25
}
26
26
27
27
#[ test]
28
28
fn network__clear_banned ( ) {
29
29
let node = Node :: with_wallet ( Wallet :: None , & [ ] ) ;
30
30
let dummy_subnet = "192.0.2.2" ;
31
31
32
- node. client . set_ban ( dummy_subnet, SetBanCommand :: Add ) . expect ( "setban add" ) ;
33
- node. client . clear_banned ( ) . expect ( "clearbanned" ) ;
32
+ let _ : ( ) = node. client . set_ban ( dummy_subnet, SetBanCommand :: Add ) . expect ( "setban add" ) ;
33
+ let _ : ( ) = node. client . clear_banned ( ) . expect ( "clearbanned" ) ;
34
34
}
35
35
36
36
#[ test]
@@ -40,7 +40,7 @@ fn network__disconnect_node() {
40
40
let peers = node2. client . get_peer_info ( ) . expect ( "getpeerinfo" ) ;
41
41
let peer = peers. 0 . first ( ) . expect ( "should have at least one peer" ) ;
42
42
43
- node2. client . disconnect_node ( & peer. address ) . expect ( "disconnectnode" ) ;
43
+ let _ : ( ) = node2. client . disconnect_node ( & peer. address ) . expect ( "disconnectnode" ) ;
44
44
}
45
45
46
46
#[ test]
@@ -130,16 +130,16 @@ fn network__list_banned() {
130
130
#[ test]
131
131
fn network__ping ( ) {
132
132
let node = Node :: with_wallet ( Wallet :: None , & [ ] ) ;
133
- node. client . ping ( ) . expect ( "ping" ) ;
133
+ let _ : ( ) = node. client . ping ( ) . expect ( "ping" ) ;
134
134
}
135
135
136
136
#[ test]
137
137
fn network__set_ban ( ) {
138
138
let node = Node :: with_wallet ( Wallet :: None , & [ ] ) ;
139
139
let dummy_subnet = "192.0.2.3" ;
140
140
141
- node. client . set_ban ( dummy_subnet, SetBanCommand :: Add ) . expect ( "setban add" ) ;
142
- node. client . set_ban ( dummy_subnet, SetBanCommand :: Remove ) . expect ( "setban remove" ) ;
141
+ let _ : ( ) = node. client . set_ban ( dummy_subnet, SetBanCommand :: Add ) . expect ( "setban add" ) ;
142
+ let _ : ( ) = node. client . set_ban ( dummy_subnet, SetBanCommand :: Remove ) . expect ( "setban remove" ) ;
143
143
}
144
144
145
145
#[ test]
0 commit comments