File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,12 @@ mod tests {
425
425
let s = p ! ( TcpStream :: connect( "google.com:443" ) ) ;
426
426
let socket = p ! ( builder. connect( "google.com" , s) ) ;
427
427
428
- assert_eq ! ( p!( socket. negotiated_alpn( ) ) . as_deref( ) , Some ( "h2" ) ) ;
428
+ assert_eq ! (
429
+ p!( socket. negotiated_alpn( ) )
430
+ . as_ref( )
431
+ . map( |alpn| alpn. as_str( ) ) ,
432
+ Some ( "h2" )
433
+ ) ;
429
434
}
430
435
431
436
#[ test]
@@ -434,7 +439,12 @@ mod tests {
434
439
let s = p ! ( TcpStream :: connect( "google.com:443" ) ) ;
435
440
let socket = p ! ( builder. connect( "google.com" , s) ) ;
436
441
437
- assert_eq ! ( p!( socket. negotiated_alpn( ) ) . as_deref( ) , None ) ;
442
+ assert_eq ! (
443
+ p!( socket. negotiated_alpn( ) )
444
+ . as_ref( )
445
+ . map( |alpn| alpn. as_str( ) ) ,
446
+ None
447
+ ) ;
438
448
}
439
449
440
450
#[ test]
You can’t perform that action at this time.
0 commit comments