unit.recovery: Read vertex IDs into int64_t, not int
Summary: This fixes the problem when the test would fail on some PCs... Notably, mine... Reviewers: florijan, mferencevic, mislav.bradac, buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D770
This commit is contained in:
parent
541a0dae24
commit
f0b1f24006
@ -120,7 +120,7 @@ TEST_F(RecoveryTest, TestEncoding) {
|
||||
auto &vertex = vertex_dv.ValueVertex();
|
||||
ids.push_back(vertex.id);
|
||||
}
|
||||
std::vector<int> from, to;
|
||||
std::vector<int64_t> from, to;
|
||||
for (int i = 0; i < summary.edge_num_; ++i) {
|
||||
communication::bolt::DecodedValue edge_dv;
|
||||
decoder.ReadValue(&edge_dv);
|
||||
@ -131,11 +131,8 @@ TEST_F(RecoveryTest, TestEncoding) {
|
||||
}
|
||||
buffer.Close();
|
||||
|
||||
permanent_assert(static_cast<int>(to.size()) == 2,
|
||||
"There should be two edges.");
|
||||
permanent_assert(static_cast<int>(from.size()) == 2,
|
||||
"There should be two edges.");
|
||||
|
||||
ASSERT_EQ(to.size(), 2U);
|
||||
ASSERT_EQ(from.size(), 2U);
|
||||
EXPECT_EQ(buffer.hash(), summary.hash_);
|
||||
EXPECT_NE(edge_types.end(),
|
||||
std::find(edge_types.begin(), edge_types.end(), "hates"));
|
||||
|
Loading…
Reference in New Issue
Block a user