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

This commit is contained in:
Thomas Leplus 2021-09-19 11:39:05 -07:00 committed by GitHub
parent a9b2469a53
commit f92c6750ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,7 +294,6 @@ public void testDfsAdminCmd() throws Exception {
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"));