HADOOP-18071. ABFS: Set driver global timeout for ITestAzureBlobFileSystemBasics (#3866)

Contributed by Sumangala Patki
This commit is contained in:
Sumangala Patki 2022-02-24 01:08:10 +05:30 committed by GitHub
parent 365375412f
commit c18b646020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,9 @@
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.Timeout;
import static org.apache.hadoop.fs.azurebfs.constants.TestConfigurationKeys.TEST_TIMEOUT;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@ -41,6 +43,7 @@ public ITestAzureBlobFileSystemBasics() throws Exception {
// If all contract tests are running in parallel, some root level tests in FileSystemContractBaseTest will fail // If all contract tests are running in parallel, some root level tests in FileSystemContractBaseTest will fail
// due to the race condition. Hence for this contract test it should be tested in different container // due to the race condition. Hence for this contract test it should be tested in different container
binding = new ABFSContractTestBinding(false); binding = new ABFSContractTestBinding(false);
globalTimeout = Timeout.millis(TEST_TIMEOUT);
} }