Skip to content

Commit

Permalink
making codeql happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Jun 21, 2023
1 parent 269827f commit cb3fa67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test-coll-iter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static MunitResult test_coll_iter(const MunitParameter params[], void* data)

munit_assert_size(result.recv_ids.size(), ==, context->reference.size());

for(uint64_t i=0; i < result.recv_ids.size(); i++) {
for(i=0; i < result.recv_ids.size(); i++) {
munit_assert_uint64(result.recv_ids[i], ==, i);
munit_assert_size(result.recv_docs[i].size(), ==, context->reference[i].size());
munit_assert_memory_equal(result.recv_docs[i].size(), result.recv_docs[i].data(), context->reference[i].data());
Expand Down Expand Up @@ -159,7 +159,7 @@ static MunitResult test_coll_iter_lua(const MunitParameter params[], void* data)
start_id += g_items_per_op;
}

for(uint64_t i=0; i < result.recv_ids.size(); i++) {
for(i=0; i < result.recv_ids.size(); i++) {
auto id = result.recv_ids[i];
munit_assert_uint64(id, < , context->reference.size());
munit_assert_true((id % 3 == 0) || (result.recv_docs[i].size() > 0 && result.recv_docs[i][0] < 100));
Expand Down

0 comments on commit cb3fa67

Please sign in to comment.