Skip to content

Commit

Permalink
modify testcase to reproduce issue 350
Browse files Browse the repository at this point in the history
  • Loading branch information
kuron99 committed Aug 29, 2023
1 parent 11cc997 commit 7690609
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ TEST_F(long_search_upsert_two_tx_test, // NOLINT
// test
ASSERT_EQ(tx_begin({s1, transaction_options::transaction_type::LONG, {st}}),
Status::OK);
ASSERT_EQ(tx_begin({s2, transaction_options::transaction_type::LONG, {st}}),
Status::OK);
wait_epoch_update();
std::string vb{};
ASSERT_EQ(search_key(s1, st, "", vb), Status::OK); // forwarding
ASSERT_EQ(vb, std::to_string(2)); // NOLINT

ASSERT_EQ(tx_begin({s2, transaction_options::transaction_type::LONG, {st}}),
Status::OK);
wait_epoch_update();
ASSERT_EQ(search_key(s2, st, "", vb), Status::OK); // forwarding
ASSERT_EQ(vb, std::to_string(2)); // NOLINT
int for_s2 = stoi(vb) + 9; // 11 // NOLINT
Expand All @@ -95,7 +97,7 @@ TEST_F(long_search_upsert_two_tx_test, // NOLINT
// s2 は s1 に前置してアボートになる。(read を踏む)
if (ret == Status::ERR_CC) { break; } // other status
LOG(INFO) << ret;
ASSERT_EQ(true, false);
break;
}

// verify
Expand Down

0 comments on commit 7690609

Please sign in to comment.