iterator_helpers.c
3.42 KB
-
tests: iterator_helpers: assert number of iterator items · d2bbea82
When the function `expect_iterator_items` surpasses the number of expected items, we simply break the loop. This causes us to trigger an assert later on which has message attached, which is annoying when trying to locate the root error cause. Instead, directly assert that the current count is still smaller or equal to the expected count inside of the loop. (cherry picked from commit 9aba7636)
Patrick Steinhardt committed