summaryrefslogtreecommitdiff
path: root/tests/iterator/iterator_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/iterator/iterator_helpers.c')
-rw-r--r--tests/iterator/iterator_helpers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/iterator/iterator_helpers.c b/tests/iterator/iterator_helpers.c
index ae48fcd46..68d574126 100644
--- a/tests/iterator/iterator_helpers.c
+++ b/tests/iterator/iterator_helpers.c
@@ -51,8 +51,7 @@ void expect_iterator_items(
cl_assert(entry->mode != GIT_FILEMODE_TREE);
}
- if (++count >= expected_flat)
- break;
+ cl_assert(++count <= expected_flat);
}
assert_at_end(i, v);