Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
thawk105 committed Aug 29, 2023
1 parent d36dc56 commit 11cc997
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,22 @@ TEST_F(long_search_upsert_two_tx_test, // NOLINT
wait_epoch_update();
std::string vb{};
ASSERT_EQ(search_key(s1, st, "", vb), Status::OK); // forwarding
ASSERT_EQ(search_key(s1, st, "", vb), Status::OK);
ASSERT_EQ(vb, std::to_string(2)); // NOLINT
ASSERT_EQ(search_key(s2, st, "", vb), Status::OK); // forwarding
ASSERT_EQ(search_key(s2, st, "", vb), Status::OK);
ASSERT_EQ(vb, std::to_string(2)); // NOLINT
int for_s2 = stoi(vb) + 9; // 11 // NOLINT
int for_s1 = stoi(vb) + 1; // 3 // NOLINT

ASSERT_EQ(search_key(s2, st, "", vb), Status::OK);
ASSERT_EQ(vb, std::to_string(2)); // NOLINT
ASSERT_EQ(upsert(s2, st, "", std::to_string(for_s2)), Status::OK);
ASSERT_EQ(Status::WARN_WAITING_FOR_OTHER_TX, commit(s2));

ASSERT_EQ(search_key(s1, st, "", vb), Status::OK);
ASSERT_EQ(vb, std::to_string(2)); // NOLINT
ASSERT_EQ(upsert(s1, st, "", std::to_string(for_s1)), Status::OK);
ASSERT_EQ(Status::OK, commit(s1));

for (;;) {
auto ret = check_commit(s2);
if (ret == Status::WARN_WAITING_FOR_OTHER_TX) {
Expand Down

0 comments on commit 11cc997

Please sign in to comment.