GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improve flaky NioSocketChannelTest (#16679) (#16684) · netty/netty@2048dca

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • transport/src/test/java/io/netty/channel/socket/nio
    • NioSocketChannelTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎transport/src/test/java/io/netty/channel/socket/nio/NioSocketChannelTest.java‎

Copy file name to clipboardExpand all lines: transport/src/test/java/io/netty/channel/socket/nio/NioSocketChannelTest.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public void channelActive(final ChannelHandlerContext ctx) throws Exception {
161161

162162
// Test for https://github.com/netty/netty/issues/4805
163163
@Test
164-
@Timeout(value = 3000, unit = TimeUnit.MILLISECONDS)
164+
@Timeout(30)
165165
public void testChannelReRegisterReadSameEventLoop() throws Exception {
166166
testChannelReRegisterRead();
167167
}
@@ -221,12 +221,12 @@ public void channelActive(final ChannelHandlerContext ctx) throws Exception {
221221
if (sc != null) {
222222
sc.close();
223223
}
224-
group.shutdownGracefully();
224+
group.shutdownGracefully().sync();
225225
}
226226
}
227227

228228
@Test
229-
@Timeout(value = 3000, unit = TimeUnit.MILLISECONDS)
229+
@Timeout(30)
230230
public void testShutdownOutputAndClose() throws Exception {
231231
EventLoopGroup group = new MultiThreadIoEventLoopGroup(1, NioIoHandler.newFactory());
232232
ServerSocket socket = new ServerSocket();
@@ -256,7 +256,7 @@ public void testShutdownOutputAndClose() throws Exception {
256256
} catch (IOException ignore) {
257257
// ignore
258258
}
259-
group.shutdownGracefully();
259+
group.shutdownGracefully().sync();
260260
}
261261
}
262262

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.