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#13999)

Signed-off-by: Rajiv Kumar Vaidyanathan <rajivkv@amazon.com>
  • Loading branch information
rajiv-kv committed Jun 6, 2024
1 parent 4e95e69 commit a1f7c82
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 a1f7c82

Please sign in to comment.