File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -225,11 +225,10 @@ mod test {
225
225
#[ test]
226
226
fn read_multipartmsg_test ( ) {
227
227
// Setting up TCP connection emulation
228
- let ( handle, istream ) = serve_tcp ( vec ! [
228
+ let ( handle, stream ) = serve_tcp ( vec ! [
229
229
// single message split in two parts to emulate real network conditions
230
230
MSG_VERSION [ ..24 ] . to_vec( ) , MSG_VERSION [ 24 ..] . to_vec( )
231
231
] ) ;
232
- let stream = istream;
233
232
let mut reader = StreamReader :: new ( stream, None ) ;
234
233
235
234
// Reading and checking the whole message back
@@ -243,13 +242,12 @@ mod test {
243
242
#[ test]
244
243
fn read_sequencemsg_test ( ) {
245
244
// Setting up TCP connection emulation
246
- let ( handle, istream ) = serve_tcp ( vec ! [
245
+ let ( handle, stream ) = serve_tcp ( vec ! [
247
246
// Real-world Bitcoin core communication case for /Satoshi:0.17.1/
248
247
MSG_VERSION [ ..23 ] . to_vec( ) , MSG_VERSION [ 23 ..] . to_vec( ) ,
249
248
MSG_VERACK . to_vec( ) ,
250
249
MSG_ALERT [ ..24 ] . to_vec( ) , MSG_ALERT [ 24 ..] . to_vec( )
251
250
] ) ;
252
- let stream = istream;
253
251
let mut reader = StreamReader :: new ( stream, None ) ;
254
252
255
253
// Reading and checking the first message (Version)
You can’t perform that action at this time.
0 commit comments