Skip to content

Commit

Permalink
[hotfix][tests] Fix SessionDispatcherLeaderProcessTest.onRemovedJobGr…
Browse files Browse the repository at this point in the history
…aph_terminatesRunningJob

Properly wait on the future completion for the assertion.
  • Loading branch information
tillrohrmann committed Jan 31, 2022
1 parent 0290715 commit d874b26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public void onRemovedJobGraph_terminatesRunningJob() throws Exception {
jobGraphStore.removeJobGraph(JOB_GRAPH.getJobID());
dispatcherLeaderProcess.onRemovedJobGraph(JOB_GRAPH.getJobID());

assertThat(terminateJobFuture).isCompletedWithValue(JOB_GRAPH.getJobID());
assertThat(terminateJobFuture.get()).isEqualTo(JOB_GRAPH.getJobID());
}
}

Expand Down

0 comments on commit d874b26

Please sign in to comment.