errose28 commented on code in PR #7653:
URL: https://github.com/apache/ozone/pull/7653#discussion_r1907582878


##########
hadoop-ozone/tools/src/test/java/org/apache/hadoop/ozone/repair/om/TestTransactionInfoRepair.java:
##########
@@ -125,12 +126,14 @@ private void testCommand(ManagedRocksDB mdb, 
ColumnFamilyHandle columnFamilyHand
           .thenReturn(transactionInfo2);
 
       CommandLine cli = new OzoneRepair().getCmd();
-      cli.execute(
-          "om",
-          "update-transaction",
-          "--db", DB_PATH,
-          "--term", String.valueOf(TEST_TERM),
-          "--index", String.valueOf(TEST_INDEX));
+      withTextFromSystemIn("y")

Review Comment:
   Can we do this without adding a new dependency? It does flow nicely but it 
might be better to avoid adding small/niche libraries that are rarely needed 
just for syntactic sugar.



-- 
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]

Reply via email to