Jonathan Hart
Committed by Ray Milkey

Increase delay for time-based test which is failing a lot.

ONOS-867

Change-Id: I4e93f72ca6a07dba83bffc76f3cf2c09fa909c1f
...@@ -15,18 +15,18 @@ ...@@ -15,18 +15,18 @@
15 */ 15 */
16 package org.onosproject.event; 16 package org.onosproject.event;
17 17
18 +import org.junit.Ignore;
19 +import org.junit.Test;
20 +
21 +import java.util.List;
22 +import java.util.Timer;
23 +
18 import static org.junit.Assert.assertEquals; 24 import static org.junit.Assert.assertEquals;
19 import static org.junit.Assert.assertFalse; 25 import static org.junit.Assert.assertFalse;
20 import static org.junit.Assert.assertTrue; 26 import static org.junit.Assert.assertTrue;
21 import static org.onlab.junit.TestTools.delay; 27 import static org.onlab.junit.TestTools.delay;
22 import static org.onosproject.event.TestEvent.Type.FOO; 28 import static org.onosproject.event.TestEvent.Type.FOO;
23 29
24 -import java.util.List;
25 -import java.util.Timer;
26 -
27 -import org.junit.Ignore;
28 -import org.junit.Test;
29 -
30 /** 30 /**
31 * Tests the operation of the accumulator. 31 * Tests the operation of the accumulator.
32 */ 32 */
...@@ -52,7 +52,7 @@ public class AbstractEventAccumulatorTest { ...@@ -52,7 +52,7 @@ public class AbstractEventAccumulatorTest {
52 accumulator.add(new TestEvent(FOO, "d")); 52 accumulator.add(new TestEvent(FOO, "d"));
53 assertTrue("should not have fired yet", accumulator.batch.isEmpty()); 53 assertTrue("should not have fired yet", accumulator.batch.isEmpty());
54 accumulator.add(new TestEvent(FOO, "e")); 54 accumulator.add(new TestEvent(FOO, "e"));
55 - delay(10); 55 + delay(20);
56 assertFalse("should have fired", accumulator.batch.isEmpty()); 56 assertFalse("should have fired", accumulator.batch.isEmpty());
57 assertEquals("incorrect batch", "abcde", accumulator.batch); 57 assertEquals("incorrect batch", "abcde", accumulator.batch);
58 } 58 }
......