Skip to content

tests: iterator: fix iterator expecting too few items#5393

Merged
ethomson merged 1 commit into
libgit2:masterfrom
pks-t:pks/tests-iterator-missing-ref
Feb 8, 2020
Merged

tests: iterator: fix iterator expecting too few items#5393
ethomson merged 1 commit into
libgit2:masterfrom
pks-t:pks/tests-iterator-missing-ref

Conversation

@pks-t

@pks-t pks-t commented Feb 7, 2020

Copy link
Copy Markdown
Member

The testcase iterator::workdir::filesystem_gunk sets up quite a lot of
directories, which is why it only runs in case GITTEST_INVASIVE_SPEED is
set in the environment. Because we do not run our default CI with this
variable, we didn't notice commit 852c83e (refs: refuse to delete
HEAD, 2020-01-15) breaking the test as it introduced a new reference to
the "testrepo" repository.

Fix the oversight by increasing the number of expected iterator items.

The testcase iterator::workdir::filesystem_gunk sets up quite a lot of
directories, which is why it only runs in case GITTEST_INVASIVE_SPEED is
set in the environment. Because we do not run our default CI with this
variable, we didn't notice commit 852c83e (refs: refuse to delete
HEAD, 2020-01-15) breaking the test as it introduced a new reference to
the "testrepo" repository.

Fix the oversight by increasing the number of expected iterator items.
@ethomson ethomson merged commit 6a61a41 into libgit2:master Feb 8, 2020
@pks-t pks-t deleted the pks/tests-iterator-missing-ref branch February 9, 2020 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants