From 39eb5ae393859ed10cb775a0bc4f6f91d5b1aec8 Mon Sep 17 00:00:00 2001 From: "jerry.adair" Date: Wed, 7 Feb 2024 01:48:49 -0500 Subject: [PATCH] GH-38703: [C++][FS][Azure] Implement DeleteFile() Modified the deletion of a non-existent file regression test. --- cpp/src/arrow/filesystem/azurefs_test.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpp/src/arrow/filesystem/azurefs_test.cc b/cpp/src/arrow/filesystem/azurefs_test.cc index 305699370370d..b133762463fea 100644 --- a/cpp/src/arrow/filesystem/azurefs_test.cc +++ b/cpp/src/arrow/filesystem/azurefs_test.cc @@ -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) {