Skip to content

Commit b8c1449

Browse files
committed
tests: iterator::workdir: fix reference count in stale test
The test `iterator::workdir::filesystem_gunk` is usually not executed, as it is guarded by the environment variable "GITTEST_INVASIVE_SPEED" due to its effects on speed. As such, it has become stale and does not account for new references which have meanwhile been added to the testrepo, causing it to fail. Fix this by raising the number of expected references to 15.
1 parent 9aba763 commit b8c1449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/iterator/workdir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ void test_iterator_workdir__filesystem_gunk(void)
662662
/* should only have 13 items, since we're not asking for trees to be
663663
* returned. the goal of this test is simply to not crash.
664664
*/
665-
expect_iterator_items(i, 13, NULL, 13, NULL);
665+
expect_iterator_items(i, 15, NULL, 15, NULL);
666666
git_iterator_free(i);
667667
git_buf_free(&parent);
668668
}

0 commit comments

Comments
 (0)