Skip to content

Commit

Permalink
Improve failures message of MultiModuleUpdatePomsTest
Browse files Browse the repository at this point in the history
Signed-off-by: Kathryn Kodama <[email protected]>
  • Loading branch information
kathrynkodama committed Feb 8, 2022
1 parent 117338b commit 291c4cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void updatePomsTest() throws Exception {
touchFileTwice("war/pom.xml");

// Give time for recompile to occur
Thread.sleep(3000);
Thread.sleep(5000);

// count exact number of messages
// only war and ear should have had recompiles
Expand Down Expand Up @@ -122,7 +122,7 @@ public void updatePomsTest() throws Exception {

// verify that feature generation did not run since there are no source class
// files for the ear module
assertEquals("generated-features.xml was modified", newFeatureFileLastModified, newFeatureFile.lastModified());
assertEquals("generated-features.xml was modified\n" + getLogTail(), newFeatureFileLastModified, newFeatureFile.lastModified());
}

private void touchFileTwice(String path) throws InterruptedException {
Expand Down

0 comments on commit 291c4cf

Please sign in to comment.