Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bhattmanish98 committed Jan 30, 2025
1 parent aeb8519 commit 2166246
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

//import java.util.ArrayList;
//import java.util.Collections;
//import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;

import com.fasterxml.jackson.core.JsonProcessingException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,23 +237,6 @@ public void testCreateOnRoot() throws Exception {
}
}

@Test
public void testCreateNonRecursiveWhenParentNotExist() throws Exception {
AzureBlobFileSystem fs = getFileSystem();
Path createDirectoryPath = path("A/");
fs.mkdirs(createDirectoryPath);
fs.createNonRecursive(path("A/B/C"), FsPermission
.getDefault(), false, 1024, (short) 1, 1024, null).close();

// ex = intercept(AbfsRestOperationException.class, () ->
// fs.createNonRecursive(testFile, FsPermission.getDefault(),
// false, 1024, (short) 1, 1024, null));
// if (ex.getStatusCode() != HTTP_CONFLICT) {
// // Request should fail with 409.
// throw ex;
// }
}

/**
* Attempts to use to the ABFS stream after it is closed.
*/
Expand Down

0 comments on commit 2166246

Please sign in to comment.