Skip to content

Commit

Permalink
Fix flaky execution vertex test, which was susceptible to RPC races
Browse files Browse the repository at this point in the history
  • Loading branch information
uce committed Jan 5, 2015
1 parent 35291ea commit ad250bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public void testSendCancelAndReceiveFail() {

vertex.cancel();

assertEquals(ExecutionState.CANCELING, vertex.getExecutionState());
assertTrue(vertex.getExecutionState() == ExecutionState.CANCELING || vertex.getExecutionState() == ExecutionState.FAILED);

vertex.getCurrentExecutionAttempt().markFailed(new Throwable("test"));

Expand Down

0 comments on commit ad250bc

Please sign in to comment.