mirror of
https://github.com/rife2/bld
synced 2025-12-20 16:48:38 +01:00
More test timing changes
This commit is contained in:
parent
5fb6fa16b7
commit
a6aadf8e60
|
|
@ -295,7 +295,7 @@ public class TestCreateRife2Operation {
|
|||
}, 2, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
|
||||
assertThrows(ExitStatusException.class, run_operation::execute);
|
||||
Thread.sleep(1000);
|
||||
Thread.sleep(2000);
|
||||
|
||||
assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>"));
|
||||
} finally {
|
||||
|
|
@ -546,7 +546,7 @@ public class TestCreateRife2Operation {
|
|||
}, 2, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
|
||||
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());
|
||||
} finally {
|
||||
|
|
@ -713,7 +713,7 @@ public class TestCreateRife2Operation {
|
|||
}, 2, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
|
||||
assertThrows(ExitStatusException.class, run_operation::execute);
|
||||
Thread.sleep(1000);
|
||||
Thread.sleep(2000);
|
||||
|
||||
assertTrue(check_result.toString().contains("<p>Hello World Myapp</p>"));
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ public class TestPublishOperation {
|
|||
var process = process_builder.start();
|
||||
|
||||
// wait for full startup
|
||||
Thread.sleep(4000);
|
||||
Thread.sleep(6000);
|
||||
|
||||
// verify the version doesn't exist
|
||||
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();
|
||||
|
||||
// wait for full startup
|
||||
Thread.sleep(4000);
|
||||
Thread.sleep(6000);
|
||||
|
||||
// verify the version doesn't exist
|
||||
assertThrows(FileUtilsErrorException.class, () -> FileUtils.readString(new URL("http://localhost:8081/api/maven/details/releases/test/pkg/myapp")));
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ public class TestUberJarOperation {
|
|||
}, 2, TimeUnit.SECONDS);
|
||||
executor.schedule(() -> run_operation.process().destroy(), 4, TimeUnit.SECONDS);
|
||||
assertThrows(ExitStatusException.class, run_operation::execute);
|
||||
Thread.sleep(1000);
|
||||
Thread.sleep(2000);
|
||||
|
||||
assertTrue(check_result.toString().contains("<p>Hello World App</p>"));
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Reference in a new issue