2
0
Fork 0
mirror of https://github.com/ethauvin/bld.git synced 2025-04-25 08:17:11 -07:00

More test timing changes

This commit is contained in:
Geert Bevin 2023-09-30 20:16:10 -04:00
parent 5fb6fa16b7
commit a6aadf8e60
3 changed files with 6 additions and 6 deletions

View file

@ -295,7 +295,7 @@ public class TestCreateRife2Operation {
}, 2, TimeUnit.SECONDS); }, 2, TimeUnit.SECONDS);
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS); executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
assertThrows(ExitStatusException.class, run_operation::execute); assertThrows(ExitStatusException.class, run_operation::execute);
Thread.sleep(1000); Thread.sleep(2000);
assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>")); assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>"));
} finally { } finally {
@ -546,7 +546,7 @@ public class TestCreateRife2Operation {
}, 2, TimeUnit.SECONDS); }, 2, TimeUnit.SECONDS);
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS); executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
assertThrows(ExitStatusException.class, run_operation::execute); assertThrows(ExitStatusException.class, run_operation::execute);
Thread.sleep(1000); Thread.sleep(2000);
assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>"), check_result.toString()); assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>"), check_result.toString());
} finally { } finally {
@ -713,7 +713,7 @@ public class TestCreateRife2Operation {
}, 2, TimeUnit.SECONDS); }, 2, TimeUnit.SECONDS);
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS); executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
assertThrows(ExitStatusException.class, run_operation::execute); assertThrows(ExitStatusException.class, run_operation::execute);
Thread.sleep(1000); Thread.sleep(2000);
assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>")); assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>"));
} finally { } finally {

View file

@ -126,7 +126,7 @@ public class TestPublishOperation {
var process = process_builder.start(); var process = process_builder.start();
// wait for full startup // wait for full startup
Thread.sleep(4000); Thread.sleep(6000);
// verify the version doesn't exist // verify the version doesn't exist
assertThrows(FileUtilsErrorException.class, () -> FileUtils.readString(new URL("http://localhost:8081/api/maven/details/releases/test/pkg/myapp"))); assertThrows(FileUtilsErrorException.class, () -> FileUtils.readString(new URL("http://localhost:8081/api/maven/details/releases/test/pkg/myapp")));
@ -392,7 +392,7 @@ public class TestPublishOperation {
var process = process_builder.start(); var process = process_builder.start();
// wait for full startup // wait for full startup
Thread.sleep(4000); Thread.sleep(6000);
// verify the version doesn't exist // verify the version doesn't exist
assertThrows(FileUtilsErrorException.class, () -> FileUtils.readString(new URL("http://localhost:8081/api/maven/details/releases/test/pkg/myapp"))); assertThrows(FileUtilsErrorException.class, () -> FileUtils.readString(new URL("http://localhost:8081/api/maven/details/releases/test/pkg/myapp")));

View file

@ -173,7 +173,7 @@ public class TestUberJarOperation {
}, 2, TimeUnit.SECONDS); }, 2, TimeUnit.SECONDS);
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS); executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
assertThrows(ExitStatusException.class, run_operation::execute); assertThrows(ExitStatusException.class, run_operation::execute);
Thread.sleep(1000); Thread.sleep(2000);
assertTrue(check_result.toString().contains("<p>Hello World App</p>")); assertTrue(check_result.toString().contains("<p>Hello World App</p>"));
} finally { } finally {