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>
Signed-off-by: kkewwei <kkewwei@163.com>
  • Loading branch information
rajiv-kv authored and kkewwei committed Jul 24, 2024
1 parent 7a769de commit 0344795
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 0344795

Please sign in to comment.