Skip to content

Commit

Permalink
More test timing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gbevin committed Oct 1, 2023
1 parent 5fb6fa1 commit a6aadf8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void testExecute()
}, 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 {
Expand Down Expand Up @@ -546,7 +546,7 @@ void testExecuteLocalDependencies()
}, 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 {
Expand Down Expand Up @@ -713,7 +713,7 @@ void testExecuteLocalDependenciesFolders()
}, 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 {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/rife/bld/operations/TestPublishOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void testPublishRelease()
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")));
Expand Down Expand Up @@ -392,7 +392,7 @@ void testPublishSnapshot()
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")));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void testFromProjectWeb()
}, 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 {
Expand Down

0 comments on commit a6aadf8

Please sign in to comment.