Skip to content

Commit

Permalink
fixup-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Nov 4, 2024
1 parent a3e1078 commit 7ccc9b4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/tsurugi_issues/tsurugi_issue1016_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,12 @@ class tsurugi_issue1016_test : public ::testing::Test {
static inline std::once_flag init_;
};

TEST_F(tsurugi_issue1016_test, modify_by_upsert_must_not_change_tidword) {
// setup
// storage = {}

TEST_F(tsurugi_issue1016_test, modify_by_upsert_must_change_tidword) {
// expect
// OCC1: begin -> OK
// OCC2: begin -> OK
// OCC3: begin -> OK
// wait epoch
// wait epoch; to do next 3 lines (OCC1 commit - OCC3 commit) in the same epoch
// OCC1: upsert A 1, commit -> OK
// OCC2: search_key A -> OK, reads A=1
// OCC3: upsert A 3, commit -> OK
Expand All @@ -53,7 +50,7 @@ TEST_F(tsurugi_issue1016_test, modify_by_upsert_must_not_change_tidword) {
// OCC1: begin -> OK
// OCC2: begin -> OK
// OCC3: begin -> OK
// wait epoch
// wait epoch; to do next 3 lines (OCC1 commit - OCC3 commit) in the same epoch
// OCC1: upsert A 1, commit -> OK
// OCC2: search_key A -> OK, reads A=1
// OCC3: upsert A 3 -> OK
Expand Down

0 comments on commit 7ccc9b4

Please sign in to comment.