iterator_helpers.c
3.42 KB
-
tests: iterator_helpers: assert number of iterator items · 9aba7636
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.
Patrick Steinhardt committed