mirror of https://github.com/apache/nifi.git
NIFI-7274 add time for test conditions to be met
This commit is contained in:
parent
2feeb57159
commit
254b20fa5f
|
@ -633,7 +633,9 @@ public class TestStandardProcessScheduler {
|
|||
procNode.performValidation();
|
||||
scheduler.startProcessor(procNode, true);
|
||||
|
||||
Thread.sleep(100L);
|
||||
while(proc.getOnScheduledInvocationCount() < 1){
|
||||
Thread.sleep(100L);
|
||||
}
|
||||
assertEquals(1, proc.getOnScheduledInvocationCount());
|
||||
Thread.sleep(100L);
|
||||
assertEquals(1, proc.getOnScheduledInvocationCount());
|
||||
|
|
|
@ -420,6 +420,8 @@ public class DBCPServiceTest {
|
|||
server.shutdown();
|
||||
server.start();
|
||||
|
||||
Thread.sleep(2500L); //allow time to pass for the server to startup.
|
||||
|
||||
// Note!! We should not get something like:
|
||||
// org.h2.jdbc.JdbcSQLException: Connection is broken: "session closed" [90067-192]
|
||||
// Pool should remove invalid connections and create new valid connections.
|
||||
|
|
Loading…
Reference in New Issue