[Check static addition] Fix TestFSMainOperationsWebHdfs.

Change-Id: Id3cd5178cd4b6a212a585f358a489cc50904b548
This commit is contained in:
Siyao Meng 2021-08-19 22:19:51 -07:00
parent 52a0ca301b
commit 28dbf672c5
1 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
public class TestFSMainOperationsWebHdfs extends FSMainOperationsBaseTest {
{
static {
GenericTestUtils.setLogLevel(ExceptionHandler.LOG, Level.TRACE);
}
@ -161,9 +161,9 @@ public class TestFSMainOperationsWebHdfs extends FSMainOperationsBaseTest {
AppendTestUtil.checkFullFile(fSys, file, newLength, data, file.toString());
ContentSummary cs = fSys.getContentSummary(dir);
assertEquals(cs.getSpaceConsumed(),
newLength * repl, "Bad disk space usage");
Assert.assertTrue(fSys.delete(dir, true), "Deleted");
assertEquals(cs.getSpaceConsumed(),
newLength * repl, "Bad disk space usage");
assertTrue(fSys.delete(dir, true), "Deleted");
}
// Test that WebHdfsFileSystem.jsonParse() closes the connection's input