Skip to content

Commit 75c80bc

Browse files
committed
Fix CopyObjectTest for Windows
Bad paths...
1 parent f613d86 commit 75c80bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloud/db_cloud_test.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,17 +1428,17 @@ TEST_F(CloudTest, CopyObjectTest) {
14281428

14291429
std::string content = "This is a test file";
14301430
std::string fname = dbname_ + "/100000.sst";
1431-
std::string dst_fname = dbname_ + "/200000.sst";
1431+
std::string dst_fname = aenv_->GetSrcObjectPath() + "/200000.sst";
14321432

14331433
{
14341434
std::unique_ptr<WritableFile> writableFile;
14351435
aenv_->NewWritableFile(fname, &writableFile, EnvOptions());
14361436
writableFile->Append(content);
14371437
writableFile->Fsync();
14381438
}
1439-
1439+
auto remapped = basename(aenv_->RemapFilename(fname));
14401440
Status st = aenv_->GetCloudEnvOptions().storage_provider->CopyCloudObject(
1441-
aenv_->GetSrcBucketName(), aenv_->RemapFilename(fname),
1441+
aenv_->GetSrcBucketName(), aenv_->GetSrcObjectPath() + "/" + remapped,
14421442
aenv_->GetSrcBucketName(), dst_fname);
14431443
ASSERT_OK(st);
14441444

0 commit comments

Comments
 (0)