Skip to content

Commit

Permalink
Add sleep in jitOptionsTest to ensure JVM has time to produce necessa…
Browse files Browse the repository at this point in the history
…ry output

Signed-off-by: Irwin D'Souza <dsouzai.gh@gmail.com>
  • Loading branch information
dsouzai committed May 2, 2023
1 parent 849c989 commit e749c6c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,13 @@ static void jitOptionsTest(String[] args) {
System.out.println("Pre-checkpoint");
CRIUTestUtils.checkPointJVM(criuSupport, imagePath, true);
System.out.println("Post-checkpoint");

// Sleep to ensure that the JVM produces output needed for test success.
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}

}

0 comments on commit e749c6c

Please sign in to comment.