GeezerVison is showing github.com — Auto-port 4.1: Fix flaky PooledByteBufAllocatorTest (#16324) · netty/netty@a66d7d3
File tree
Expand file treeCollapse file tree
Open diff view settings
buffer/src/test/java/io/netty/buffer
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -349,13 +349,13 @@ public void testAllocateSmallOffset() { |
349 | 349 | } |
350 | 350 |
|
351 | 351 | @Test |
352 | | - @Timeout(value = 10, threadMode = Timeout.ThreadMode.SEPARATE_THREAD) |
| 352 | + @Timeout(value = 20, threadMode = Timeout.ThreadMode.SEPARATE_THREAD) |
353 | 353 | public void testThreadCacheDestroyedByThreadCleaner() throws InterruptedException { |
354 | 354 | testThreadCacheDestroyed(false); |
355 | 355 | } |
356 | 356 |
|
357 | 357 | @Test |
358 | | - @Timeout(value = 10, threadMode = Timeout.ThreadMode.SEPARATE_THREAD) |
| 358 | + @Timeout(value = 20, threadMode = Timeout.ThreadMode.SEPARATE_THREAD) |
359 | 359 | public void testThreadCacheDestroyedAfterExitRun() throws InterruptedException { |
360 | 360 | testThreadCacheDestroyed(true); |
361 | 361 | } |
@@ -408,7 +408,6 @@ public void run() { |
408 | 408 | while (allocator.metric().numThreadLocalCaches() > 0) { |
409 | 409 | // Signal we want to have a GC run to ensure we can process our ThreadCleanerReference |
410 | 410 | System.gc(); |
411 | | - System.runFinalization(); |
412 | 411 | LockSupport.parkNanos(MILLISECONDS.toNanos(100)); |
413 | 412 | } |
414 | 413 |
|
|