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);
|
}, 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 {
|
||||||
|
|
|
||||||
|
|
@ -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")));
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue