Skip to content

Commit ef83c2f

Browse files
author
Duc Hieu Pham
committed
Quick fix on db_cloud_test
Summary: Use test id with the clone db in `SavePoint` test so that other tests can run in parallel. Otherwise, if there are 2 tests in parallel, it might update the same folder in S3, leading to test failure Test Plan: Run it Reviewers: #platform, joe Reviewed By: #platform, joe Differential Revision: https://rockset.phacility.com/D5654
1 parent 1f74438 commit ef83c2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloud/db_cloud_test.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ TEST_F(CloudTest, Savepoint) {
674674
ASSERT_TRUE(value.compare("World") == 0);
675675
CloseDB();
676676
value.clear();
677-
std::string dest_path = "/clone2_path";
677+
std::string dest_path = "/clone2_path-" + test_id_;
678678
{
679679
// Create a new instance with different src and destination paths.
680680
// This is true clone and should have all the contents of the masterdb
@@ -731,6 +731,7 @@ TEST_F(CloudTest, Savepoint) {
731731
ASSERT_OK(cloud_db->Get(ReadOptions(), "Hell", &value));
732732
ASSERT_TRUE(value.compare("Done") == 0);
733733
}
734+
aenv_->EmptyBucket(aenv_->GetSrcBucketName(), dest_path);
734735
}
735736

736737
TEST_F(CloudTest, Encryption) {

0 commit comments

Comments
 (0)