BsoBird commented on code in PR #6345:
URL: https://github.com/apache/hive/pull/6345#discussion_r2879624002
##########
iceberg/iceberg-catalog/src/test/java/org/apache/iceberg/hadoop/TestHiveHadoopCommits.java:
##########
@@ -267,11 +261,10 @@ void testTwoClientCommitSameVersion() throws
InterruptedException {
Path dstPath = x.getArgument(2);
File src = new File(srcPath.toUri());
File dst = new File(dstPath.toUri());
- String srcPathStr = src.getAbsolutePath();
- String dstPathStr = dst.getAbsolutePath();
- String cmd = String.format("mv -n %s %s", srcPathStr, dstPathStr);
- Process process = Runtime.getRuntime().exec(cmd);
- assertThat(process.waitFor()).isZero();
+ Files.move(
Review Comment:
got it
--
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]