Skip to content

Commit 03612b3

Browse files
committed
Restore pushdown config after CalciteNoPushdownIT class
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent 5307039 commit 03612b3

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

integ-test/src/test/java/org/opensearch/sql/calcite/pushdown/CalciteNoPushdownIT.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
/*
2-
*
3-
* * Copyright OpenSearch Contributors
4-
* * SPDX-License-Identifier: Apache-2.0
5-
*
2+
* Copyright OpenSearch Contributors
3+
* SPDX-License-Identifier: Apache-2.0
64
*/
75

86
package org.opensearch.sql.calcite.pushdown;
97

10-
import org.junit.After;
8+
import org.junit.AfterClass;
119
import org.junit.BeforeClass;
1210
import org.junit.runner.RunWith;
1311
import org.junit.runners.Suite;
@@ -115,8 +113,8 @@ public static void disablePushdown() {
115113
PPLIntegTestCase.GlobalPushdownConfig.enabled = false;
116114
}
117115

118-
@After
119-
public void restorePushdown() {
116+
@AfterClass
117+
public static void restorePushdown() {
120118
PPLIntegTestCase.GlobalPushdownConfig.enabled = wasPushdownEnabled;
121119
}
122120
}

0 commit comments

Comments
 (0)