mirror of https://github.com/apache/nifi.git
NIFI-1631 This closes #283. increased timeouts on test
Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
parent
19bc5ba999
commit
e83429a08c
|
@ -416,7 +416,7 @@ public class TestStandardProcessScheduler {
|
||||||
LongEnablingService ts = (LongEnablingService) serviceNode.getControllerServiceImplementation();
|
LongEnablingService ts = (LongEnablingService) serviceNode.getControllerServiceImplementation();
|
||||||
ts.setLimit(3000);
|
ts.setLimit(3000);
|
||||||
scheduler.enableControllerService(serviceNode);
|
scheduler.enableControllerService(serviceNode);
|
||||||
Thread.sleep(500);
|
Thread.sleep(2000);
|
||||||
assertTrue(serviceNode.isActive());
|
assertTrue(serviceNode.isActive());
|
||||||
assertEquals(1, ts.enableInvocationCount());
|
assertEquals(1, ts.enableInvocationCount());
|
||||||
|
|
||||||
|
@ -427,7 +427,7 @@ public class TestStandardProcessScheduler {
|
||||||
assertEquals(0, ts.disableInvocationCount());
|
assertEquals(0, ts.disableInvocationCount());
|
||||||
// wait a bit. . . Enabling will finish and @OnDisabled will be invoked
|
// wait a bit. . . Enabling will finish and @OnDisabled will be invoked
|
||||||
// automatically
|
// automatically
|
||||||
Thread.sleep(3000);
|
Thread.sleep(4000);
|
||||||
assertEquals(ControllerServiceState.DISABLED, serviceNode.getState());
|
assertEquals(ControllerServiceState.DISABLED, serviceNode.getState());
|
||||||
assertEquals(1, ts.disableInvocationCount());
|
assertEquals(1, ts.disableInvocationCount());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue