NIFI-1631 This closes #283. increased timeouts on test

Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
Oleg Zhurakousky 2016-03-16 10:32:07 -04:00 committed by joewitt
parent 19bc5ba999
commit e83429a08c
1 changed files with 2 additions and 2 deletions

View File

@ -416,7 +416,7 @@ public class TestStandardProcessScheduler {
LongEnablingService ts = (LongEnablingService) serviceNode.getControllerServiceImplementation();
ts.setLimit(3000);
scheduler.enableControllerService(serviceNode);
Thread.sleep(500);
Thread.sleep(2000);
assertTrue(serviceNode.isActive());
assertEquals(1, ts.enableInvocationCount());
@ -427,7 +427,7 @@ public class TestStandardProcessScheduler {
assertEquals(0, ts.disableInvocationCount());
// wait a bit. . . Enabling will finish and @OnDisabled will be invoked
// automatically
Thread.sleep(3000);
Thread.sleep(4000);
assertEquals(ControllerServiceState.DISABLED, serviceNode.getState());
assertEquals(1, ts.disableInvocationCount());
}