Skip to content

Commit

Permalink
Code Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
anujmodi2021 committed Feb 4, 2025
1 parent 8959eda commit 2f4a0c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public void testDeleteIdempotencyTriggerHttp404() throws Exception {
* endpoint, the orchestration would be done by the client. The idempotency
* issue would not happen for blob endpoint.
*/
Assume.assumeTrue(getAbfsServiceType() == AbfsServiceType.DFS);
assumeDfsServiceType();
AbfsClient client = ITestAbfsClient.createTestClientFromCurrentContext(
fs.getAbfsStore().getClient(),
this.getConfiguration());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public Void call() throws Exception {
*/
@Test
public void testListPathTracingContext() throws Exception {
Assume.assumeTrue(getAbfsServiceType() == AbfsServiceType.DFS);
assumeDfsServiceType();
final AzureBlobFileSystem fs = getFileSystem();
final AzureBlobFileSystem spiedFs = Mockito.spy(fs);
final AzureBlobFileSystemStore spiedStore = Mockito.spy(fs.getAbfsStore());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void testRecursiveDeleteWithPagination() throws Exception {
*/
@Test
public void testNonRecursiveDeleteWithPagination() throws Exception {
Assume.assumeTrue(getAbfsServiceType() == AbfsServiceType.DFS);
assumeDfsServiceType();
testNonRecursiveDeleteWithPaginationInternal(true);
testNonRecursiveDeleteWithPaginationInternal(false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public void testRenameRecoveryUnsupportedForFlatNamespace() throws Exception {
Assume.assumeTrue(!isNamespaceEnabled);
// In DFS endpoint, renamePath is O(1) API call and idempotency issue can happen.
// For blob endpoint, client orchestrates the rename operation.
Assume.assumeTrue(getAbfsServiceType() == AbfsServiceType.DFS);
assumeDfsServiceType();
AzureBlobFileSystem fs = getFileSystem();
AzureBlobFileSystemStore abfsStore = fs.getAbfsStore();
TracingContext testTracingContext = getTestTracingContext(fs, false);
Expand Down

0 comments on commit 2f4a0c6

Please sign in to comment.