From 03be08dba00db72f4752b52e4ae6493e78bfcb6b Mon Sep 17 00:00:00 2001 From: MaxKsyunz Date: Wed, 22 Mar 2023 13:15:28 -0700 Subject: [PATCH] Use Junit 4 @After instead of Junit 5 @AfterEach SQLIntegTestCase is based on JUnit 4 Junit 5 constructs do not affect test executing. Signed-off-by: MaxKsyunz --- .../test/java/org/opensearch/sql/sql/PaginationWindowIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integ-test/src/test/java/org/opensearch/sql/sql/PaginationWindowIT.java b/integ-test/src/test/java/org/opensearch/sql/sql/PaginationWindowIT.java index 19b3db8d68..724451ef65 100644 --- a/integ-test/src/test/java/org/opensearch/sql/sql/PaginationWindowIT.java +++ b/integ-test/src/test/java/org/opensearch/sql/sql/PaginationWindowIT.java @@ -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; @@ -20,7 +20,7 @@ public void init() throws IOException { loadIndex(Index.PHRASE); } - @AfterEach + @After void resetParams() throws IOException { resetMaxResultWindow(TEST_INDEX_PHRASE); resetQuerySizeLimit();