Skip to content

Commit

Permalink
Fixed test for invalid sample interval
Browse files Browse the repository at this point in the history
  • Loading branch information
schmelter-sap committed Jul 31, 2023
1 parent 476ad5e commit 6065cc1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public static void main(String[] args) throws Exception {
"-Xmx128m",
"-version"); // Note: explicitly omit Xlog:vitals, since the warning should always appear
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldHaveExitValue(0);
output.shouldContain("Invalid VitalsSampleInterval (0) specified. Vitals disabled.");
output.shouldHaveExitValue(1);
output.shouldContain("Improperly specified VM option 'VitalsSampleInterval=0'");

}

Expand Down

0 comments on commit 6065cc1

Please sign in to comment.