File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
okhttp/src/test/java/io/grpc/okhttp Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 2525import io .grpc .okhttp .internal .TlsVersion ;
2626import java .net .Socket ;
2727import java .util .List ;
28+ import java .util .Locale ;
2829import org .junit .Rule ;
2930import org .junit .Test ;
3031import org .junit .rules .ExpectedException ;
@@ -95,6 +96,9 @@ public void getSocketOptions() throws Exception {
9596 assertEquals ("5000" , socketOptions .others .get ("SO_SNDBUF" ));
9697 assertEquals ("true" , socketOptions .others .get ("SO_KEEPALIVE" ));
9798 assertEquals ("true" , socketOptions .others .get ("SO_OOBINLINE" ));
98- assertEquals ("8" , socketOptions .others .get ("IP_TOS" ));
99+ String osName = System .getProperty ("os.name" ).toLowerCase (Locale .ENGLISH );
100+ if (!osName .startsWith ("windows" )) {
101+ assertEquals ("8" , socketOptions .others .get ("IP_TOS" ));
102+ }
99103 }
100104}
You can’t perform that action at this time.
0 commit comments