raju-balpande commented on code in PR #6142:
URL: https://github.com/apache/ozone/pull/6142#discussion_r1474371289
##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerHttpServer.java:
##########
@@ -64,16 +64,14 @@ public static Collection<Object[]> policy() {
}
@BeforeAll public static void setUp() throws Exception {
- File base = new File(BASEDIR);
Review Comment:
Done. thanks.
##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/security/TestOzoneTokenIdentifier.java:
##########
@@ -282,9 +248,9 @@ public void testSymmetricTokenPerfHelper(String
hmacAlgorithm, int keyLen) {
* Test serialization/deserialization of OzoneTokenIdentifier.
*/
@Test
- public void testReadWriteInProtobuf() throws IOException {
+ public void testReadWriteInProtobuf(@TempDir Path baseDir) throws
IOException {
OzoneTokenIdentifier id = getIdentifierInst();
- File idFile = new File(BASEDIR + "/tokenFile");
+ File idFile = baseDir.resolve("/tokenFile").toFile();
Review Comment:
Done. thanks.
--
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]