Skip to content

Commit

Permalink
Fixing SparkLauncherSuite unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorvpatil committed Jun 14, 2017
1 parent d906072 commit 81fd297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public static class SparkLauncherTestApp {

public static void main(String[] args) throws Exception {
assertEquals(1, args.length);
if("proc".equalsIgnoreCase(args[0])) {
if ("proc".equalsIgnoreCase(args[0])) {
assertEquals("proc", args[0]);
assertEquals("bar", System.getProperty("foo"));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ void setChildThread(Thread childThread) {
}

protected void waitFor() throws InterruptedException {
if(this.childThread.isAlive()) {
this.childThread.wait();
if (this.childThread.isAlive()) {
this.childThread.join();
}
}
}

0 comments on commit 81fd297

Please sign in to comment.