瀏覽代碼

HDFS-16230. Remove irrelevant trim() call in TestStorageRestore. (#3455). Contributed by Thomas Leplus.

Thomas Leplus 3 年之前
父節點
當前提交
f92c6750ec

+ 0 - 1
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestStorageRestore.java

@@ -294,7 +294,6 @@ public class TestStorageRestore {
       restore = fsi.getStorage().getRestoreFailedStorage();
       restore = fsi.getStorage().getRestoreFailedStorage();
       assertTrue("After check call restore is " + restore, restore);
       assertTrue("After check call restore is " + restore, restore);
       String commandOutput = cmdResult.getCommandOutput();
       String commandOutput = cmdResult.getCommandOutput();
-      commandOutput.trim();
       assertTrue(commandOutput.contains("restoreFailedStorage is set to true"));
       assertTrue(commandOutput.contains("restoreFailedStorage is set to true"));