You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: trpc-proto/trpc-proto-http/src/test/java/com/tencent/trpc/proto/http/HttpMultiPortNamingUrlConcurrentTest.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,11 @@ public class HttpMultiPortNamingUrlConcurrentTest {
71
71
72
72
privatestaticServerConfigserverConfig;
73
73
74
+
/**
75
+
* Spin up {@value #SERVER_COUNT} HTTP providers on contiguous ports. Each provider returns
76
+
* its own port number so the concurrent test can assert that requests are dispatched across
77
+
* every endpoint resolved from the multi-port {@code ip://} naming URL.
Copy file name to clipboardExpand all lines: trpc-transport/trpc-transport-netty/src/test/java/com/tencent/trpc/transport/netty/NettyAbstractClientTransportTest.java
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -63,16 +63,15 @@ public void tearDown() throws Exception {
Copy file name to clipboardExpand all lines: trpc-transport/trpc-transport-netty/src/test/java/com/tencent/trpc/transport/netty/NettyTcpClientIdleCloseTest.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -113,10 +113,12 @@ public void idleTimeoutClosesChannelAndInvalidatesSlot() throws Exception {
Copy file name to clipboardExpand all lines: trpc-transport/trpc-transport-netty/src/test/java/com/tencent/trpc/transport/netty/NettyTcpClientTransportTest.java
+54-53Lines changed: 54 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -121,13 +121,15 @@ public void testApplyTcpKeepAliveTuningSkipsNonPositive() throws Exception {
121
121
122
122
/**
123
123
* When {@code idleTimeout > 0}, {@code doOpen} must register both
124
-
* {@code idleState} and {@code idleClose} pipeline handlers. Driven via a real TCP
125
-
* connect against a throwaway {@link java.net.ServerSocket} so netty actually runs
126
-
* the {@code ChannelInitializer} and the assertions inspect a populated pipeline.
124
+
* {@code idleState} and {@code idleClose} pipeline handlers. Driven offline by
125
+
* reflecting on the {@link io.netty.channel.ChannelInitializer} captured in the
126
+
* bootstrap and invoking its {@code initChannel(Channel)} on a fresh
127
+
* {@link io.netty.channel.embedded.EmbeddedChannel}; no real socket / EventLoop is
128
+
* involved so the test is fully deterministic and isolated from JVM-level concurrency.
0 commit comments