We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4459d73 commit c8dfbcdCopy full SHA for c8dfbcd
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestLeaseRecovery2.java
@@ -30,6 +30,8 @@
30
import java.util.Map;
31
32
import java.util.function.Supplier;
33
+
34
+import org.junit.jupiter.api.AfterAll;
35
import org.slf4j.Logger;
36
import org.slf4j.LoggerFactory;
37
import org.apache.hadoop.conf.Configuration;
@@ -112,8 +114,8 @@ public void startUp() throws IOException {
112
114
* stop the cluster
113
115
* @throws IOException
116
*/
- @AfterEach
- public void tearDown() throws IOException {
117
+ @AfterAll
118
+ public static void tearDown() throws IOException {
119
if (cluster != null) {
120
IOUtils.closeStream(dfs);
121
cluster.shutdown();
0 commit comments