Increase a timeout value from 100ms to 1000ms.
This fixes an occasional unit test failure on (slower) VMs. Change-Id: I56c1009829efd5af98c62cc4cbff7827406a2fc2
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -85,6 +85,7 @@ import static org.onosproject.net.intent.IntentTestsMocks.MockIntent; | ... | @@ -85,6 +85,7 @@ import static org.onosproject.net.intent.IntentTestsMocks.MockIntent; |
85 | 85 | ||
86 | public class IntentManagerTest { | 86 | public class IntentManagerTest { |
87 | 87 | ||
88 | + private static final int SUBMIT_TIMEOUT_MS = 1000; | ||
88 | private static final ApplicationId APPID = new TestApplicationId("manager-test"); | 89 | private static final ApplicationId APPID = new TestApplicationId("manager-test"); |
89 | 90 | ||
90 | private IntentManager manager; | 91 | private IntentManager manager; |
... | @@ -380,7 +381,7 @@ public class IntentManagerTest { | ... | @@ -380,7 +381,7 @@ public class IntentManagerTest { |
380 | service.withdraw(intent); | 381 | service.withdraw(intent); |
381 | } | 382 | } |
382 | 383 | ||
383 | - assertAfter(100, () -> { | 384 | + assertAfter(SUBMIT_TIMEOUT_MS, () -> { |
384 | assertEquals(1L, service.getIntentCount()); | 385 | assertEquals(1L, service.getIntentCount()); |
385 | assertEquals(0L, flowRuleService.getFlowRuleCount()); | 386 | assertEquals(0L, flowRuleService.getFlowRuleCount()); |
386 | }); | 387 | }); | ... | ... |
-
Please register or login to post a comment