mirror of https://github.com/apache/nifi.git
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:
parent
fba006c8e3
commit
aca114926b
|
@ -352,14 +352,14 @@ public class TestStandardProcessScheduler {
|
|||
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() {
|
||||
@Override
|
||||
public void run() {
|
||||
scheduler.disableControllerService(serviceNode);
|
||||
}
|
||||
});
|
||||
Thread.sleep(25);
|
||||
Thread.sleep(100);
|
||||
assertFalse(serviceNode.isActive());
|
||||
assertTrue(serviceNode.getState() == ControllerServiceState.DISABLED);
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ public class TestStandardControllerServiceProvider {
|
|||
* {@link PropertyDescriptor}.isDependentServiceEnableable() as well as
|
||||
* https://issues.apache.org/jira/browse/NIFI-1143
|
||||
*/
|
||||
@Test(timeout = 10000)
|
||||
@Test(timeout = 60000)
|
||||
public void testConcurrencyWithEnablingReferencingServicesGraph() {
|
||||
final ProcessScheduler scheduler = createScheduler();
|
||||
for (int i = 0; i < 10000; i++) {
|
||||
|
|
Loading…
Reference in New Issue