Fix TestViewFileSystemOverloadSchemeHdfsFileSystemContract.

Change-Id: I4b3c43886439f2f304f685ec858338dbc49a6c77
This commit is contained in:
Siyao Meng 2021-08-19 22:41:45 -07:00
parent 3c9a7f508d
commit 68e3463367
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.test.GenericTestUtils;
import org.junit.Test;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
@ -115,7 +116,7 @@ public class TestViewFileSystemOverloadSchemeHdfsFileSystemContract
@Override
@Test
public void testListStatusRootDir() throws Throwable {
assumeTrue(rootDirTestEnabled());
Assumptions.assumeTrue(rootDirTestEnabled());
Path dir = path("/");
Path child = path("/FileSystemContractBaseTest");
try (FileSystem dfs = ((ViewFileSystemOverloadScheme) fs).getRawFileSystem(