File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1717 - cargo build
1818 - cargo build --no-default-features
1919 enable_tcp_fastopen :
20- - sysctl net.inet.tcp.fastopen.client_enabled =1
21- - sysctl net.inet.tcp.fastopen.server_enabled =1
20+ - sudo sysctl net.inet.tcp.fastopen.client_enable =1
21+ - sudo sysctl net.inet.tcp.fastopen.server_enable =1
2222 amd64_test_script :
2323 - . $HOME/.cargo/env
2424 - cargo test --all-features
Original file line number Diff line number Diff line change @@ -1302,8 +1302,12 @@ fn tcp_fastopen() {
13021302 socket. set_tcp_fastopen ( 5 ) . unwrap ( ) ;
13031303
13041304 #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
1305- let expected = 5 ;
1305+ {
1306+ assert_eq ! ( socket. tcp_fastopen( ) . unwrap( ) , 5 ) ;
1307+ }
1308+
13061309 #[ cfg( not( any( target_os = "linux" , target_os = "android" ) ) ) ]
1307- let expected = 1 ;
1308- assert_eq ! ( socket. tcp_fastopen( ) . unwrap( ) , expected) ;
1310+ {
1311+ assert_ne ! ( socket. tcp_fastopen( ) . unwrap( ) , 0 ) ;
1312+ }
13091313}
You can’t perform that action at this time.
0 commit comments