GeezerVison is showing github.com — Stabilize more AbstractByteBufTests (#16611) · netty/netty@e41afb0
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/AbstractByteBufTest.java +6-2Lines changed: 6 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2726,6 +2726,7 @@ private void testInternalNioBuffer(int a) { |
2726 | 2726 | } |
2727 | 2727 |
|
2728 | 2728 | @Test |
| 2729 | + @Timeout(30) |
2729 | 2730 | public void testDuplicateReadGatheringByteChannelMultipleThreads() throws Exception { |
2730 | 2731 | final byte[] bytes = new byte[8]; |
2731 | 2732 | random.nextBytes(bytes); |
@@ -2740,6 +2741,7 @@ public void testDuplicateReadGatheringByteChannelMultipleThreads() throws Except |
2740 | 2741 | } |
2741 | 2742 |
|
2742 | 2743 | @Test |
| 2744 | + @Timeout(30) |
2743 | 2745 | public void testSliceReadGatheringByteChannelMultipleThreads() throws Exception { |
2744 | 2746 | final byte[] bytes = new byte[8]; |
2745 | 2747 | random.nextBytes(bytes); |
@@ -2790,11 +2792,12 @@ public void run() { |
2790 | 2792 | } |
2791 | 2793 | }).start(); |
2792 | 2794 | } |
2793 | | - latch.await(10, TimeUnit.SECONDS); |
| 2795 | + latch.await(); |
2794 | 2796 | barrier.await(5, TimeUnit.SECONDS); |
2795 | 2797 | } |
2796 | 2798 |
|
2797 | 2799 | @Test |
| 2800 | + @Timeout(30) |
2798 | 2801 | public void testDuplicateReadOutputStreamMultipleThreads() throws Exception { |
2799 | 2802 | final byte[] bytes = new byte[8]; |
2800 | 2803 | random.nextBytes(bytes); |
@@ -2809,6 +2812,7 @@ public void testDuplicateReadOutputStreamMultipleThreads() throws Exception { |
2809 | 2812 | } |
2810 | 2813 |
|
2811 | 2814 | @Test |
| 2815 | + @Timeout(30) |
2812 | 2816 | public void testSliceReadOutputStreamMultipleThreads() throws Exception { |
2813 | 2817 | final byte[] bytes = new byte[8]; |
2814 | 2818 | random.nextBytes(bytes); |
@@ -2858,7 +2862,7 @@ public void run() { |
2858 | 2862 | } |
2859 | 2863 | }).start(); |
2860 | 2864 | } |
2861 | | - latch.await(10, TimeUnit.SECONDS); |
| 2865 | + latch.await(); |
2862 | 2866 | barrier.await(5, TimeUnit.SECONDS); |
2863 | 2867 | } |
2864 | 2868 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -490,6 +490,7 @@ void testIsWritable(DerivedParam param) { |
490 | 490 | } |
491 | 491 |
|
492 | 492 | @Test |
| 493 | + @Timeout(30) |
493 | 494 | public void testDuplicateReadGatheringByteChannelMultipleThreads() throws Exception { |
494 | 495 | final byte[] bytes = new byte[8]; |
495 | 496 | PlatformDependent.threadLocalRandom().nextBytes(bytes); |
@@ -505,6 +506,7 @@ public void testDuplicateReadGatheringByteChannelMultipleThreads() throws Except |
505 | 506 | } |
506 | 507 |
|
507 | 508 | @Test |
| 509 | + @Timeout(30) |
508 | 510 | public void testSliceReadGatheringByteChannelMultipleThreads() throws Exception { |
509 | 511 | final byte[] bytes = new byte[8]; |
510 | 512 | PlatformDependent.threadLocalRandom().nextBytes(bytes); |
@@ -520,6 +522,7 @@ public void testSliceReadGatheringByteChannelMultipleThreads() throws Exception |
520 | 522 | } |
521 | 523 |
|
522 | 524 | @Test |
| 525 | + @Timeout(30) |
523 | 526 | public void testDuplicateReadOutputStreamMultipleThreads() throws Exception { |
524 | 527 | final byte[] bytes = new byte[8]; |
525 | 528 | PlatformDependent.threadLocalRandom().nextBytes(bytes); |
@@ -535,6 +538,7 @@ public void testDuplicateReadOutputStreamMultipleThreads() throws Exception { |
535 | 538 | } |
536 | 539 |
|
537 | 540 | @Test |
| 541 | + @Timeout(30) |
538 | 542 | public void testSliceReadOutputStreamMultipleThreads() throws Exception { |
539 | 543 | final byte[] bytes = new byte[8]; |
540 | 544 | PlatformDependent.threadLocalRandom().nextBytes(bytes); |
|