objectstore/store_test: fix lack of flush prior to collection_empty() call

Fixes: http://tracker.ceph.com/issues/22409

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
This commit is contained in:
Igor Fedotov 2018-01-03 16:48:51 +03:00
parent 37282f2158
commit f669fcdfd5

View File

@ -2388,6 +2388,7 @@ TEST_P(StoreTest, SimpleAttrTest) {
r = apply_transaction(store, &osr, std::move(t));
ASSERT_EQ(r, 0);
}
osr.flush();
{
bool empty;
int r = store->collection_empty(cid, &empty);
@ -2407,6 +2408,7 @@ TEST_P(StoreTest, SimpleAttrTest) {
r = apply_transaction(store, &osr, std::move(t));
ASSERT_EQ(r, 0);
}
osr.flush();
{
bool empty;
int r = store->collection_empty(cid, &empty);