Skip to content

Commit 2f4a0c6

Browse files
committed
Code Improvements
1 parent 8959eda commit 2f4a0c6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAzureBlobFileSystemDelete.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public void testDeleteIdempotencyTriggerHttp404() throws Exception {
240240
* endpoint, the orchestration would be done by the client. The idempotency
241241
* issue would not happen for blob endpoint.
242242
*/
243-
Assume.assumeTrue(getAbfsServiceType() == AbfsServiceType.DFS);
243+
assumeDfsServiceType();
244244
AbfsClient client = ITestAbfsClient.createTestClientFromCurrentContext(
245245
fs.getAbfsStore().getClient(),
246246
this.getConfiguration());

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAzureBlobFileSystemListStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public Void call() throws Exception {
124124
*/
125125
@Test
126126
public void testListPathTracingContext() throws Exception {
127-
Assume.assumeTrue(getAbfsServiceType() == AbfsServiceType.DFS);
127+
assumeDfsServiceType();
128128
final AzureBlobFileSystem fs = getFileSystem();
129129
final AzureBlobFileSystem spiedFs = Mockito.spy(fs);
130130
final AzureBlobFileSystemStore spiedStore = Mockito.spy(fs.getAbfsStore());

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/ITestAbfsPaginatedDelete.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public void testRecursiveDeleteWithPagination() throws Exception {
168168
*/
169169
@Test
170170
public void testNonRecursiveDeleteWithPagination() throws Exception {
171-
Assume.assumeTrue(getAbfsServiceType() == AbfsServiceType.DFS);
171+
assumeDfsServiceType();
172172
testNonRecursiveDeleteWithPaginationInternal(true);
173173
testNonRecursiveDeleteWithPaginationInternal(false);
174174
}

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/TestAbfsRenameRetryRecovery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ public void testRenameRecoveryUnsupportedForFlatNamespace() throws Exception {
440440
Assume.assumeTrue(!isNamespaceEnabled);
441441
// In DFS endpoint, renamePath is O(1) API call and idempotency issue can happen.
442442
// For blob endpoint, client orchestrates the rename operation.
443-
Assume.assumeTrue(getAbfsServiceType() == AbfsServiceType.DFS);
443+
assumeDfsServiceType();
444444
AzureBlobFileSystem fs = getFileSystem();
445445
AzureBlobFileSystemStore abfsStore = fs.getAbfsStore();
446446
TracingContext testTracingContext = getTestTracingContext(fs, false);

0 commit comments

Comments
 (0)