Skip to content

Commit

Permalink
GH-38703: [C++][FS][Azure] Implement DeleteFile()
Browse files Browse the repository at this point in the history
Modified the deletion of a non-existent file regression test.
  • Loading branch information
av8or1 committed Feb 7, 2024
1 parent dd60704 commit 39eb5ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpp/src/arrow/filesystem/azurefs_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,10 @@ TEST_F(TestAzuriteFileSystem, DeleteFileSuccess) {
}

TEST_F(TestAzuriteFileSystem, DeleteFileFailureNonexistent) {
ASSERT_RAISES(IOError, fs()->DeleteFile("nonexistent"));
const auto container_name = PreexistingData::RandomContainerName(rng_);
auto container_client = CreateContainer(container_name);
const auto blob_path = ConcatAbstractPath(container_name, "someblob");
ASSERT_RAISES(IOError, fs()->DeleteFile(blob_path));
}

TEST_F(TestAzuriteFileSystem, DeleteFileFailureContainer) {
Expand Down

0 comments on commit 39eb5ae

Please sign in to comment.