GeezerVison is showing github.com — Stabilize more AbstractByteBufTests (#16611) · netty/netty@fb34160
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 |
|---|
@@ -2731,6 +2731,7 @@ private void testInternalNioBuffer(int a) { |
2731 | 2731 | } |
2732 | 2732 |
|
2733 | 2733 | @Test |
| 2734 | + @Timeout(30) |
2734 | 2735 | public void testDuplicateReadGatheringByteChannelMultipleThreads() throws Exception { |
2735 | 2736 | final byte[] bytes = new byte[8]; |
2736 | 2737 | random.nextBytes(bytes); |
@@ -2745,6 +2746,7 @@ public void testDuplicateReadGatheringByteChannelMultipleThreads() throws Except |
2745 | 2746 | } |
2746 | 2747 |
|
2747 | 2748 | @Test |
| 2749 | + @Timeout(30) |
2748 | 2750 | public void testSliceReadGatheringByteChannelMultipleThreads() throws Exception { |
2749 | 2751 | final byte[] bytes = new byte[8]; |
2750 | 2752 | random.nextBytes(bytes); |
@@ -2795,11 +2797,12 @@ public void run() { |
2795 | 2797 | } |
2796 | 2798 | }).start(); |
2797 | 2799 | } |
2798 | | - latch.await(10, TimeUnit.SECONDS); |
| 2800 | + latch.await(); |
2799 | 2801 | barrier.await(5, TimeUnit.SECONDS); |
2800 | 2802 | } |
2801 | 2803 |
|
2802 | 2804 | @Test |
| 2805 | + @Timeout(30) |
2803 | 2806 | public void testDuplicateReadOutputStreamMultipleThreads() throws Exception { |
2804 | 2807 | final byte[] bytes = new byte[8]; |
2805 | 2808 | random.nextBytes(bytes); |
@@ -2814,6 +2817,7 @@ public void testDuplicateReadOutputStreamMultipleThreads() throws Exception { |
2814 | 2817 | } |
2815 | 2818 |
|
2816 | 2819 | @Test |
| 2820 | + @Timeout(30) |
2817 | 2821 | public void testSliceReadOutputStreamMultipleThreads() throws Exception { |
2818 | 2822 | final byte[] bytes = new byte[8]; |
2819 | 2823 | random.nextBytes(bytes); |
@@ -2863,7 +2867,7 @@ public void run() { |
2863 | 2867 | } |
2864 | 2868 | }).start(); |
2865 | 2869 | } |
2866 | | - latch.await(10, TimeUnit.SECONDS); |
| 2870 | + latch.await(); |
2867 | 2871 | barrier.await(5, TimeUnit.SECONDS); |
2868 | 2872 | } |
2869 | 2873 |
|
|
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 |
|---|
@@ -491,6 +491,7 @@ void testIsWritable(DerivedParam param) { |
491 | 491 | } |
492 | 492 |
|
493 | 493 | @Test |
| 494 | + @Timeout(30) |
494 | 495 | public void testDuplicateReadGatheringByteChannelMultipleThreads() throws Exception { |
495 | 496 | final byte[] bytes = new byte[8]; |
496 | 497 | ThreadLocalRandom.current().nextBytes(bytes); |
@@ -506,6 +507,7 @@ public void testDuplicateReadGatheringByteChannelMultipleThreads() throws Except |
506 | 507 | } |
507 | 508 |
|
508 | 509 | @Test |
| 510 | + @Timeout(30) |
509 | 511 | public void testSliceReadGatheringByteChannelMultipleThreads() throws Exception { |
510 | 512 | final byte[] bytes = new byte[8]; |
511 | 513 | ThreadLocalRandom.current().nextBytes(bytes); |
@@ -521,6 +523,7 @@ public void testSliceReadGatheringByteChannelMultipleThreads() throws Exception |
521 | 523 | } |
522 | 524 |
|
523 | 525 | @Test |
| 526 | + @Timeout(30) |
524 | 527 | public void testDuplicateReadOutputStreamMultipleThreads() throws Exception { |
525 | 528 | final byte[] bytes = new byte[8]; |
526 | 529 | ThreadLocalRandom.current().nextBytes(bytes); |
@@ -536,6 +539,7 @@ public void testDuplicateReadOutputStreamMultipleThreads() throws Exception { |
536 | 539 | } |
537 | 540 |
|
538 | 541 | @Test |
| 542 | + @Timeout(30) |
539 | 543 | public void testSliceReadOutputStreamMultipleThreads() throws Exception { |
540 | 544 | final byte[] bytes = new byte[8]; |
541 | 545 | ThreadLocalRandom.current().nextBytes(bytes); |
|