Fix mvcc tests
Summary: Daily release build was failing because of these tests. Reviewers: florijan, mferencevic Reviewed By: florijan Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D917
This commit is contained in:
parent
19a44a7d94
commit
088a177939
@ -106,7 +106,7 @@ TEST_F(Mvcc, RemoveAdvanceRemove) {
|
||||
EXPECT_EQ(T2_FIND, v1);
|
||||
engine.Advance(t2->id_);
|
||||
EXPECT_EQ(T2_FIND, nullptr);
|
||||
EXPECT_DEATH(T2_REMOVE, ".*nullptr.*");
|
||||
EXPECT_FALSE(T2_FIND);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
#undef T4_FIND
|
||||
#define T4_FIND version_list.find(*t4)
|
||||
#undef T3_FIND
|
||||
#define T3_FIND version_list.find(*t3)
|
||||
|
||||
// IMPORTANT: look definiton of EXPECT_CRE and EXPECT_EXP macros in
|
||||
// tests/mvcc_find_update_common.hpp. Numbers in those macros represent
|
||||
@ -61,7 +63,7 @@ TEST_F(Mvcc, RemCmtRemCmt1) {
|
||||
T2_REMOVE;
|
||||
T2_COMMIT;
|
||||
T3_BEGIN;
|
||||
EXPECT_DEATH(T3_REMOVE, ".*nullptr.*");
|
||||
EXPECT_FALSE(T3_FIND);
|
||||
}
|
||||
|
||||
TEST_F(Mvcc, UpdCmtUpdAbt1) {
|
||||
@ -108,7 +110,7 @@ TEST_F(Mvcc, RemCmtRemAbt1) {
|
||||
T2_REMOVE;
|
||||
T2_COMMIT;
|
||||
T3_BEGIN;
|
||||
EXPECT_DEATH(T3_REMOVE, ".*nullptr.*");
|
||||
EXPECT_FALSE(T3_FIND);
|
||||
}
|
||||
|
||||
TEST_F(Mvcc, UpdAbtUpdCmt1) {
|
||||
|
Loading…
Reference in New Issue
Block a user