Skip to content

Commit c8dfbcd

Browse files
committed
fix checkstyle.
1 parent 4459d73 commit c8dfbcd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestLeaseRecovery2.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
import java.util.Map;
3131

3232
import java.util.function.Supplier;
33+
34+
import org.junit.jupiter.api.AfterAll;
3335
import org.slf4j.Logger;
3436
import org.slf4j.LoggerFactory;
3537
import org.apache.hadoop.conf.Configuration;
@@ -112,8 +114,8 @@ public void startUp() throws IOException {
112114
* stop the cluster
113115
* @throws IOException
114116
*/
115-
@AfterEach
116-
public void tearDown() throws IOException {
117+
@AfterAll
118+
public static void tearDown() throws IOException {
117119
if (cluster != null) {
118120
IOUtils.closeStream(dfs);
119121
cluster.shutdown();

0 commit comments

Comments
 (0)