From c18b646020af5c13c4ab014406efc84fa25ef4af Mon Sep 17 00:00:00 2001 From: Sumangala Patki <70206833+sumangala-patki@users.noreply.github.com> Date: Thu, 24 Feb 2022 01:08:10 +0530 Subject: [PATCH] HADOOP-18071. ABFS: Set driver global timeout for ITestAzureBlobFileSystemBasics (#3866) Contributed by Sumangala Patki --- .../fs/azurebfs/contract/ITestAzureBlobFileSystemBasics.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/contract/ITestAzureBlobFileSystemBasics.java b/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/contract/ITestAzureBlobFileSystemBasics.java index a9fa2d7719..e99d0895d1 100644 --- a/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/contract/ITestAzureBlobFileSystemBasics.java +++ b/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/contract/ITestAzureBlobFileSystemBasics.java @@ -27,7 +27,9 @@ 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 ITestAzureBlobFileSystemBasics() throws Exception { // 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); }