This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new f3d7311b1e HDDS-9471. Speed up TestOzoneSnapshotRestore (#5452)
f3d7311b1e is described below
commit f3d7311b1e64cf8adaa0bc73c438765e2c0ca149
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Oct 17 21:59:33 2023 +0200
HDDS-9471. Speed up TestOzoneSnapshotRestore (#5452)
---
.../hadoop/ozone/om/snapshot/TestOzoneSnapshotRestore.java | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOzoneSnapshotRestore.java
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOzoneSnapshotRestore.java
index 55774a6867..c417d6bf20 100644
---
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOzoneSnapshotRestore.java
+++
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOzoneSnapshotRestore.java
@@ -43,9 +43,10 @@ import org.apache.hadoop.ozone.om.helpers.SnapshotInfo;
import org.apache.hadoop.util.ToolRunner;
import org.apache.ozone.test.GenericTestUtils;
import org.apache.ozone.test.tag.Flaky;
-import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
@@ -69,6 +70,7 @@ import static
org.junit.jupiter.params.provider.Arguments.arguments;
/**
* Tests Snapshot Restore function.
*/
+@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@Timeout(value = 300)
public class TestOzoneSnapshotRestore {
private static final String OM_SERVICE_ID = "om-service-test-1";
@@ -97,7 +99,7 @@ public class TestOzoneSnapshotRestore {
counter = new AtomicInteger();
}
- @BeforeEach
+ @BeforeAll
public void init() throws Exception {
OzoneConfiguration conf = new OzoneConfiguration();
// Enable filesystem snapshot feature for the test regardless of the
default
@@ -134,7 +136,7 @@ public class TestOzoneSnapshotRestore {
}
- @AfterEach
+ @AfterAll
public void tearDown() throws Exception {
IOUtils.closeQuietly(client);
if (cluster != null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]