test: fix flaky test in comsumerTest (#5846)
Co-authored-by: Cai, Zhouxiang <zc31@illinois.edu> Co-authored-by: Zhenxu Ke <kezhenxu94@apache.org>
This commit is contained in:
parent
832582427a
commit
48479b74df
|
|
@ -35,6 +35,7 @@ public class ConsumerTest {
|
|||
|
||||
@Test
|
||||
public void testConsumerLessThanChannel() throws IllegalAccessException {
|
||||
|
||||
final DataCarrier<SampleData> carrier = new DataCarrier<SampleData>(2, 100);
|
||||
|
||||
for (int i = 0; i < 100; i++) {
|
||||
|
|
@ -56,6 +57,7 @@ public class ConsumerTest {
|
|||
|
||||
@Test
|
||||
public void testConsumerMoreThanChannel() throws IllegalAccessException, InterruptedException {
|
||||
BUFFER.drainTo(new ArrayList<SampleData>());
|
||||
final DataCarrier<SampleData> carrier = new DataCarrier<SampleData>(2, 100);
|
||||
|
||||
for (int i = 0; i < 200; i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue