summaryrefslogtreecommitdiff
path: root/tests/iterator
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-06-07 11:00:26 +0200
committerPatrick Steinhardt <ps@pks.im>2018-01-03 11:50:38 +0000
commitb8c14499f9940feaab08a23651a2ef24d27b17b7 (patch)
tree605ee6dd5d78cd9ea042e07379c9fddb794e3e13 /tests/iterator
parent9aba76364fcb4755930856a7bafc5294ed3ee944 (diff)
downloadlibgit2-b8c14499f9940feaab08a23651a2ef24d27b17b7.tar.gz
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.
Diffstat (limited to 'tests/iterator')
-rw-r--r--tests/iterator/workdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/iterator/workdir.c b/tests/iterator/workdir.c
index 618006715..198edc7e8 100644
--- a/tests/iterator/workdir.c
+++ b/tests/iterator/workdir.c
@@ -662,7 +662,7 @@ void test_iterator_workdir__filesystem_gunk(void)
/* should only have 13 items, since we're not asking for trees to be
* returned. the goal of this test is simply to not crash.
*/
- expect_iterator_items(i, 13, NULL, 13, NULL);
+ expect_iterator_items(i, 15, NULL, 15, NULL);
git_iterator_free(i);
git_buf_free(&parent);
}