mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-25 00:07:12 -07:00
Some test timing tweaks to try to work around CI failures.
This commit is contained in:
parent
0994f184f2
commit
5fb6fa16b7
2 changed files with 12 additions and 8 deletions
|
@ -292,9 +292,10 @@ public class TestCreateRife2Operation {
|
|||
} catch (FileUtilsErrorException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}, 1, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 2, TimeUnit.SECONDS);
|
||||
}, 2, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
|
||||
assertThrows(ExitStatusException.class, run_operation::execute);
|
||||
Thread.sleep(1000);
|
||||
|
||||
assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>"));
|
||||
} finally {
|
||||
|
@ -542,9 +543,10 @@ public class TestCreateRife2Operation {
|
|||
} catch (FileUtilsErrorException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}, 1, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 2, TimeUnit.SECONDS);
|
||||
}, 2, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
|
||||
assertThrows(ExitStatusException.class, run_operation::execute);
|
||||
Thread.sleep(1000);
|
||||
|
||||
assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>"), check_result.toString());
|
||||
} finally {
|
||||
|
@ -708,9 +710,10 @@ public class TestCreateRife2Operation {
|
|||
} catch (FileUtilsErrorException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}, 1, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 2, TimeUnit.SECONDS);
|
||||
}, 2, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
|
||||
assertThrows(ExitStatusException.class, run_operation::execute);
|
||||
Thread.sleep(1000);
|
||||
|
||||
assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>"));
|
||||
} finally {
|
||||
|
|
|
@ -170,9 +170,10 @@ public class TestUberJarOperation {
|
|||
} catch (FileUtilsErrorException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}, 1, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 2, TimeUnit.SECONDS);
|
||||
}, 2, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
|
||||
assertThrows(ExitStatusException.class, run_operation::execute);
|
||||
Thread.sleep(1000);
|
||||
|
||||
assertTrue(check_result.toString().contains("<p>Hello World App</p>"));
|
||||
} finally {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue