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 <rajivkv@amazon.com>
  • Loading branch information
rajiv-kv authored and deshsidd committed May 17, 2024
1 parent fe76b5b commit f4fc053
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 f4fc053

Please sign in to comment.