Skip to content

Commit 34ffe22

Browse files
committed
Modified test for revwalk_hidecb
1 parent 892b7c9 commit 34ffe22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/revwalk/hidecb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static int hide_none_cb(const git_oid *commit_id, void *data)
6060
/* Hide some commits */
6161
static int hide_commit_cb(const git_oid *commit_id, void *data)
6262
{
63-
if (0 == git_oid_cmp(commit_id, &commit_ids[3]))
63+
if (0 == git_oid_cmp(commit_id, &commit_ids[5]))
6464
return 1;
6565
else
6666
return 0;
@@ -165,7 +165,7 @@ void test_revwalk_hidecb__hide_some_commits(void)
165165
i++;
166166
}
167167

168-
cl_assert_equal_i(i, 3);
168+
cl_assert_equal_i(i, 4);
169169
cl_assert_equal_i(error, GIT_ITEROVER);
170170

171171
git_revwalk_free(walk);

0 commit comments

Comments
 (0)