summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-05 14:19:14 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-05 14:19:14 -0400
commite66a4eb37cf3d8c369e662c60fdb0b3cfc459d8e (patch)
treed0afc8f2348f10a4bdb7b21f8df25a14aa333743
parente2d4f09da1a9ae08b8942e8d4e20d831aab4ec7b (diff)
downloadlibgit2-ethomson/auth_failure.tar.gz
online tests: use gitlab for auth failuresethomson/auth_failure
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.
-rw-r--r--tests/online/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c
index faf8a0f87..0d0334cbb 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -334,7 +334,7 @@ void test_online_clone__cred_callback_called_again_on_auth_failure(void)
git__free(_remote_url);
git__free(_remote_user);
- _remote_url = git__strdup("https://github.com/libgit2/non-existent");
+ _remote_url = git__strdup("https://gitlab.com/libgit2/non-existent");
_remote_user = git__strdup("libgit2test");
g_options.fetch_opts.callbacks.credentials = cred_count_calls_cb;