diff --git a/hudi-client/src/test/java/org/apache/hudi/client/TestTableSchemaEvolution.java b/hudi-client/src/test/java/org/apache/hudi/client/TestTableSchemaEvolution.java
index f9e59c9ab..d3081e8bd 100644
--- a/hudi-client/src/test/java/org/apache/hudi/client/TestTableSchemaEvolution.java
+++ b/hudi-client/src/test/java/org/apache/hudi/client/TestTableSchemaEvolution.java
@@ -75,13 +75,13 @@ public class TestTableSchemaEvolution extends TestHoodieClientBase {
+ TRIP_SCHEMA_SUFFIX;
@BeforeEach
- public void setUp() throws Exception {
+ public void setUp() throws IOException {
initResources();
}
@AfterEach
- public void tearDown() {
- cleanupSparkContexts();
+ public void tearDown() throws IOException {
+ cleanupResources();
}
@Test
diff --git a/pom.xml b/pom.xml
index b2792f000..9fe27d788 100644
--- a/pom.xml
+++ b/pom.xml
@@ -245,7 +245,8 @@
${maven-surefire-plugin.version}
${skipUTs}
- -Xms256m -Xmx2g
+ -Xmx2g
+ 120
${surefire-log4j.file}