raju-balpande commented on code in PR #5556:
URL: https://github.com/apache/ozone/pull/5556#discussion_r1389793190
##########
hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/api/TestContainerEndpoint.java:
##########
@@ -759,7 +760,7 @@ public void testGetMissingContainers() throws IOException,
TimeoutException {
new HashSet<>(Arrays.asList("host2", "host3", "host4")));
List<ContainerHistory> containerReplicas = container.getReplicas();
containerReplicas.forEach(history -> {
- Assert.assertTrue(datanodes.contains(history.getDatanodeHost()));
+ Assertions.assertTrue(datanodes.contains(history.getDatanodeHost()));
Review Comment:
Good catch. modified these changes.
##########
hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/spi/impl/TestReconDBProvider.java:
##########
@@ -41,18 +41,18 @@
*/
public class TestReconDBProvider {
- @Rule
- public TemporaryFolder tempFolder = new TemporaryFolder();
+ @TempDir
+ private Path temporaryFolder;
private Injector injector;
- @Before
+ @BeforeEach
public void setUp() throws IOException {
- tempFolder.create();
+ //tempFolder.create();
Review Comment:
done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]