Skip to content

Commit

Permalink
Fix wrong API usage in wrongly resolved conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
earthling-amzn committed Feb 6, 2024
1 parent 4e4e70b commit 8dfe163
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ public static void main(String[] args) throws Exception {
}

private static void expectSuccess(String... args) throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(args);
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(args);
OutputAnalyzer analyzer = new OutputAnalyzer(pb.start());
analyzer.shouldHaveExitValue(0);
analyzer.shouldNotContain("java.lang.OutOfMemoryError: Java heap space");
}

private static void expectFailure(String... args) throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(args);
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(args);
OutputAnalyzer analyzer = new OutputAnalyzer(pb.start());
analyzer.shouldHaveExitValue(1);
analyzer.shouldContain("java.lang.OutOfMemoryError: Java heap space");
Expand Down

0 comments on commit 8dfe163

Please sign in to comment.