Fix for ASSERT_STATUS_CHECKED test failure (#7985)

Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/7985

Test Plan: CircleCI ASSERT_STATUS_CHECKED test

Reviewed By: jay-zhuang

Differential Revision: D26568446

Pulled By: akankshamahajan15

fbshipit-source-id: bd0ab41f485942e313d82ce3895ce53e0967ba98
This commit is contained in:
Akanksha Mahajan 2021-02-20 19:12:14 -08:00 committed by Facebook GitHub Bot
parent 7343eb4a74
commit 6790a983eb

View File

@ -85,7 +85,9 @@ class TraceAnalyzerTest : public testing::Test {
ASSERT_OK(db_->Get(ro, "a", &value));
single_iter = db_->NewIterator(ro);
single_iter->Seek("a");
ASSERT_OK(single_iter->status());
single_iter->SeekForPrev("b");
ASSERT_OK(single_iter->status());
delete single_iter;
std::this_thread::sleep_for (std::chrono::seconds(1));