Skip to content

Commit

Permalink
assertBusy for verify
Browse files Browse the repository at this point in the history
  • Loading branch information
albertzaharovits committed Jun 7, 2024
1 parent 4f78f71 commit b6f623b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,13 @@ public void testRemoteTaskCancellationOnFailedResponse() throws Exception {
// assert remote task is cancelled
assertBusy(cancelChildSent::get);
assertBusy(cancelChildReceived::get);
verify(remoteTransport.getTaskManager()).cancelChildLocal(eq(parentTaskId), eq(searchShardsRequestId.get()), anyString());
assertBusy(
() -> verify(remoteTransport.getTaskManager()).cancelChildLocal(
eq(parentTaskId),
eq(searchShardsRequestId.get()),
anyString()
)
);
}
}
}
Expand Down

0 comments on commit b6f623b

Please sign in to comment.