NIFI-1145

Increasing timeout values for TestStandardProcessScheduler#validateEnabledDisableMultiThread
Increasing timeout for testConcurrencyWithEnablingReferencingServicesGraph as 10s is not sufficient for overly taxed environments.

Signed-off-by: Aldrin Piri <aldrin@apache.org>
This commit is contained in:
Aldrin Piri 2016-01-04 15:05:57 -05:00
parent fba006c8e3
commit aca114926b
2 changed files with 3 additions and 3 deletions

View File

@ -352,14 +352,14 @@ public class TestStandardProcessScheduler {
scheduler.enableControllerService(serviceNode); scheduler.enableControllerService(serviceNode);
} }
}); });
Thread.sleep(2); // ensure that enable gets initiated before disable Thread.sleep(10); // ensure that enable gets initiated before disable
executor.execute(new Runnable() { executor.execute(new Runnable() {
@Override @Override
public void run() { public void run() {
scheduler.disableControllerService(serviceNode); scheduler.disableControllerService(serviceNode);
} }
}); });
Thread.sleep(25); Thread.sleep(100);
assertFalse(serviceNode.isActive()); assertFalse(serviceNode.isActive());
assertTrue(serviceNode.getState() == ControllerServiceState.DISABLED); assertTrue(serviceNode.getState() == ControllerServiceState.DISABLED);
} }

View File

@ -117,7 +117,7 @@ public class TestStandardControllerServiceProvider {
* {@link PropertyDescriptor}.isDependentServiceEnableable() as well as * {@link PropertyDescriptor}.isDependentServiceEnableable() as well as
* https://issues.apache.org/jira/browse/NIFI-1143 * https://issues.apache.org/jira/browse/NIFI-1143
*/ */
@Test(timeout = 10000) @Test(timeout = 60000)
public void testConcurrencyWithEnablingReferencingServicesGraph() { public void testConcurrencyWithEnablingReferencingServicesGraph() {
final ProcessScheduler scheduler = createScheduler(); final ProcessScheduler scheduler = createScheduler();
for (int i = 0; i < 10000; i++) { for (int i = 0; i < 10000; i++) {