From fc7ada2db593e9dbb5e773837e931bea799ca85d Mon Sep 17 00:00:00 2001 From: av8or1 Date: Wed, 7 Feb 2024 23:11:37 -0600 Subject: [PATCH] Update cpp/src/arrow/filesystem/azurefs_test.cc Co-authored-by: Sutou Kouhei --- cpp/src/arrow/filesystem/azurefs_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/src/arrow/filesystem/azurefs_test.cc b/cpp/src/arrow/filesystem/azurefs_test.cc index b133762463fea..4d123028ea86e 100644 --- a/cpp/src/arrow/filesystem/azurefs_test.cc +++ b/cpp/src/arrow/filesystem/azurefs_test.cc @@ -1394,9 +1394,9 @@ TEST_F(TestAzuriteFileSystem, DeleteFileSuccess) { TEST_F(TestAzuriteFileSystem, DeleteFileFailureNonexistent) { 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)); + ASSERT_OK(fs()->CreateDir(container_name)); + const auto nonexistent_file_name = ConcatAbstractPath(container_name, "nonexistent"); + ASSERT_RAISES(IOError, fs()->DeleteFile(nonexistent_file_name)); } TEST_F(TestAzuriteFileSystem, DeleteFileFailureContainer) {