Skip to content

Commit 13a16e7

Browse files
committed
review
1 parent 607394a commit 13a16e7

File tree

1 file changed

+5
-9
lines changed
  • instrumentation/reactor/reactor-netty/reactor-netty-1.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0

1 file changed

+5
-9
lines changed

instrumentation/reactor/reactor-netty/reactor-netty-1.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/ReactorNettyHttpClientTest.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ protected HttpClient createHttpClient() {
3333
protected void configure(HttpClientTestOptions.Builder optionsBuilder) {
3434
super.configure(optionsBuilder);
3535

36-
boolean isWindows = OS.WINDOWS.isCurrentOs();
37-
38-
// Only run single connection tests on Linux due to networking stack differences
39-
if (!isWindows) {
36+
if (OS.WINDOWS.isCurrentOs()) {
37+
// Disable remote connection tests on Windows due to reactor-netty creating extra spans
38+
optionsBuilder.setTestRemoteConnection(false);
39+
} else {
40+
// Only run single connection tests on Linux due to networking stack differences
4041
optionsBuilder.setSingleConnectionFactory(
4142
(host, port) -> {
4243
HttpClient httpClient =
@@ -60,11 +61,6 @@ protected void configure(HttpClientTestOptions.Builder optionsBuilder) {
6061
.code();
6162
});
6263
}
63-
64-
// Disable remote connection tests on Windows due to reactor-netty creating extra spans
65-
if (isWindows) {
66-
optionsBuilder.setTestRemoteConnection(false);
67-
}
6864
}
6965

7066
@Override

0 commit comments

Comments
 (0)