Skip to content

Commit

Permalink
setting the response before latch countdown so that thread waiting do…
Browse files Browse the repository at this point in the history
…es not encounter null (opensearch-project#13118)

Signed-off-by: Rajiv Kumar Vaidyanathan <[email protected]>
  • Loading branch information
rajiv-kv authored Apr 30, 2024
1 parent 8ac92d4 commit f1228e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ public void testAdmissionControlResponseStatus() throws Exception {

@Override
public void sendResponse(RestResponse response) {
waitForResponse.countDown();
aliasResponse.set(response);
waitForResponse.countDown();
}
};

Expand Down

0 comments on commit f1228e9

Please sign in to comment.