Skip to content

Commit

Permalink
Use Junit 4 @after instead of Junit 5 @AfterEach
Browse files Browse the repository at this point in the history
SQLIntegTestCase is based on JUnit 4

 Junit 5 constructs do not affect test executing.

Signed-off-by: MaxKsyunz <[email protected]>
  • Loading branch information
MaxKsyunz committed Mar 27, 2023
1 parent 17e5240 commit 03be08d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import java.io.IOException;
import org.json.JSONObject;
import org.junit.After;
import org.junit.Test;
import org.junit.jupiter.api.AfterEach;
import org.opensearch.client.ResponseException;
import org.opensearch.sql.legacy.SQLIntegTestCase;

Expand All @@ -20,7 +20,7 @@ public void init() throws IOException {
loadIndex(Index.PHRASE);
}

@AfterEach
@After
void resetParams() throws IOException {
resetMaxResultWindow(TEST_INDEX_PHRASE);
resetQuerySizeLimit();
Expand Down

0 comments on commit 03be08d

Please sign in to comment.