diff --git a/utilities/checkpoint/checkpoint_test.cc b/utilities/checkpoint/checkpoint_test.cc index a8eda4e67..82afe9fce 100644 --- a/utilities/checkpoint/checkpoint_test.cc +++ b/utilities/checkpoint/checkpoint_test.cc @@ -751,7 +751,8 @@ TEST_F(CheckpointTest, CheckpointInvalidDirectoryName) { for (std::string checkpoint_dir : {"", "/", "////"}) { Checkpoint* checkpoint; ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); - ASSERT_TRUE(checkpoint->CreateCheckpoint("").IsInvalidArgument()); + ASSERT_TRUE( + checkpoint->CreateCheckpoint(checkpoint_dir).IsInvalidArgument()); delete checkpoint; } }