Vertify delta uuid
This commit is contained in:
parent
dee88fd7a3
commit
c1639ef770
@ -83,9 +83,8 @@ void AssertEqVertexContainer(const VertexContainer &actual, const VertexContaine
|
|||||||
auto *expected_delta = expected_it->second.delta;
|
auto *expected_delta = expected_it->second.delta;
|
||||||
auto *actual_delta = actual_it->second.delta;
|
auto *actual_delta = actual_it->second.delta;
|
||||||
while (expected_delta != nullptr) {
|
while (expected_delta != nullptr) {
|
||||||
// TODO Enable this then fix delta id generator
|
|
||||||
EXPECT_EQ(actual_delta->action, expected_delta->action);
|
EXPECT_EQ(actual_delta->action, expected_delta->action);
|
||||||
// EXPECT_EQ(actual_delta->uuid, expected_delta->uuid);
|
EXPECT_EQ(actual_delta->uuid, expected_delta->uuid);
|
||||||
switch (expected_delta->action) {
|
switch (expected_delta->action) {
|
||||||
case Delta::Action::ADD_LABEL:
|
case Delta::Action::ADD_LABEL:
|
||||||
case Delta::Action::REMOVE_LABEL: {
|
case Delta::Action::REMOVE_LABEL: {
|
||||||
@ -192,15 +191,15 @@ TEST_F(ShardSplitTest, TestBasicSplitVerticesAndEdges) {
|
|||||||
EXPECT_EQ(splitted_data.label_property_indices.size(), 0);
|
EXPECT_EQ(splitted_data.label_property_indices.size(), 0);
|
||||||
|
|
||||||
CommitInfo commit_info{.start_or_commit_timestamp = current_hlc};
|
CommitInfo commit_info{.start_or_commit_timestamp = current_hlc};
|
||||||
Delta delta_delete1{Delta::DeleteObjectTag{}, &commit_info, 3, 1};
|
Delta delta_delete1{Delta::DeleteObjectTag{}, &commit_info, 13, 1};
|
||||||
Delta delta_delete2{Delta::DeleteObjectTag{}, &commit_info, 4, 1};
|
Delta delta_delete2{Delta::DeleteObjectTag{}, &commit_info, 14, 1};
|
||||||
Delta delta_delete3{Delta::DeleteObjectTag{}, &commit_info, 5, 1};
|
Delta delta_delete3{Delta::DeleteObjectTag{}, &commit_info, 15, 1};
|
||||||
Delta delta_add_in_edge1{Delta::RemoveInEdgeTag{},
|
Delta delta_add_in_edge1{Delta::RemoveInEdgeTag{},
|
||||||
edge_type_id,
|
edge_type_id,
|
||||||
VertexId{primary_label, {PropertyValue(1)}},
|
VertexId{primary_label, {PropertyValue(1)}},
|
||||||
EdgeRef{Gid::FromUint(1)},
|
EdgeRef{Gid::FromUint(1)},
|
||||||
&commit_info,
|
&commit_info,
|
||||||
13,
|
18,
|
||||||
1};
|
1};
|
||||||
Delta delta_add_out_edge2{Delta::RemoveOutEdgeTag{},
|
Delta delta_add_out_edge2{Delta::RemoveOutEdgeTag{},
|
||||||
edge_type_id,
|
edge_type_id,
|
||||||
@ -214,7 +213,7 @@ TEST_F(ShardSplitTest, TestBasicSplitVerticesAndEdges) {
|
|||||||
VertexId{primary_label, {PropertyValue(4)}},
|
VertexId{primary_label, {PropertyValue(4)}},
|
||||||
EdgeRef{Gid::FromUint(2)},
|
EdgeRef{Gid::FromUint(2)},
|
||||||
&commit_info,
|
&commit_info,
|
||||||
15,
|
21,
|
||||||
1};
|
1};
|
||||||
VertexContainer expected_vertices;
|
VertexContainer expected_vertices;
|
||||||
auto [vtx4, inserted4] = expected_vertices.emplace(PrimaryKey{PropertyValue{4}}, VertexData(&delta_delete1));
|
auto [vtx4, inserted4] = expected_vertices.emplace(PrimaryKey{PropertyValue{4}}, VertexData(&delta_delete1));
|
||||||
|
Loading…
Reference in New Issue
Block a user