Skip to content

Commit 1c1acfa

Browse files
Igor Fedotovifed01
authored andcommitted
test/store_test: wait for collection removal before going forward with
the next stage in CompressionTest Signed-off-by: Igor Fedotov <[email protected]>
1 parent a6a499e commit 1c1acfa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/objectstore/store_test.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,12 +1351,15 @@ void StoreTest::doCompressionTest()
13511351
EXPECT_EQ(store->mount(), 0);
13521352
ch = store->open_collection(cid);
13531353
{
1354+
C_SaferCond c;
13541355
ObjectStore::Transaction t;
13551356
t.remove(cid, hoid);
13561357
t.remove_collection(cid);
13571358
cerr << "Cleaning" << std::endl;
1359+
t.register_on_commit(&c);
13581360
r = queue_transaction(store, ch, std::move(t));
13591361
ASSERT_EQ(r, 0);
1362+
c.wait();
13601363
}
13611364
}
13621365

0 commit comments

Comments
 (0)