commit | 35b4ecb8307a7a9f951244c5dabb4b0b31635521 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Tue Mar 03 15:06:04 2015 -0800 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Tue Mar 03 15:06:04 2015 -0800 |
tree | e47c11f2ad0089aacd7a270561940865be6ade4b | |
parent | 7522895b2bc9982085112cf6d1492e17a303ab9d [diff] |
Increase a timeout value from 100ms to 1000ms. This fixes an occasional unit test failure on (slower) VMs. Change-Id: I56c1009829efd5af98c62cc4cbff7827406a2fc2
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/IntentManagerTest.java b/core/net/src/test/java/org/onosproject/net/intent/impl/IntentManagerTest.java index 31e0c4a..e21de64 100644 --- a/core/net/src/test/java/org/onosproject/net/intent/impl/IntentManagerTest.java +++ b/core/net/src/test/java/org/onosproject/net/intent/impl/IntentManagerTest.java
@@ -85,6 +85,7 @@ public class IntentManagerTest { + private static final int SUBMIT_TIMEOUT_MS = 1000; private static final ApplicationId APPID = new TestApplicationId("manager-test"); private IntentManager manager; @@ -380,7 +381,7 @@ service.withdraw(intent); } - assertAfter(100, () -> { + assertAfter(SUBMIT_TIMEOUT_MS, () -> { assertEquals(1L, service.getIntentCount()); assertEquals(0L, flowRuleService.getFlowRuleCount()); });