Skip to content

Commit e66a4eb

Browse files
committed
online tests: use gitlab for auth failures
GitHub recently changed their behavior from returning 401s for private or nonexistent repositories on a clone to returning 404s. For our tests that require an auth failure (and 401), move to GitLab to request a missing repository. This lets us continue to test our auth failure case, at least until they decide to mimic that decision.
1 parent e2d4f09 commit e66a4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/online/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ void test_online_clone__cred_callback_called_again_on_auth_failure(void)
334334
git__free(_remote_url);
335335
git__free(_remote_user);
336336

337-
_remote_url = git__strdup("https://github.com/libgit2/non-existent");
337+
_remote_url = git__strdup("https://gitlab.com/libgit2/non-existent");
338338
_remote_user = git__strdup("libgit2test");
339339

340340
g_options.fetch_opts.callbacks.credentials = cred_count_calls_cb;

0 commit comments

Comments
 (0)