Browse Source

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

Contributed by Sumangala Patki
Sumangala Patki 3 years ago
parent
commit
c18b646020

+ 3 - 0
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/contract/ITestAzureBlobFileSystemBasics.java

@@ -27,7 +27,9 @@ import org.apache.hadoop.fs.contract.ContractTestUtils;
 import org.junit.Before;
 import org.junit.Ignore;
 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.assertTrue;
 
@@ -41,6 +43,7 @@ public class ITestAzureBlobFileSystemBasics extends FileSystemContractBaseTest {
     // 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
     binding = new ABFSContractTestBinding(false);
+    globalTimeout = Timeout.millis(TEST_TIMEOUT);
   }