From 0d5ee49e19006bd82f70cf4a589e1dfa7ddd065e Mon Sep 17 00:00:00 2001 From: jeremy Date: Fri, 28 Oct 2022 12:55:56 +0200 Subject: [PATCH] Correct test expectation --- tests/simulation/shard_rsm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/simulation/shard_rsm.cpp b/tests/simulation/shard_rsm.cpp index da4df9f34..ef15146af 100644 --- a/tests/simulation/shard_rsm.cpp +++ b/tests/simulation/shard_rsm.cpp @@ -726,7 +726,8 @@ void AttemptToExpandOneLimitAndOrderBy(ShardClient &client, uint64_t src_vertex_ // We check that we do not have more results than the limit. Based on the data in the graph, we know that we should // receive exactly limit responses. - MG_ASSERT(write_response.result.size() == limit); + auto expected_number_of_rows = std::min(expand_one_req.src_vertices.size(), limit); + MG_ASSERT(write_response.result.size() == expected_number_of_rows); // We also check that the vertices are ordered by prop1 DESC