summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-12-03 10:17:30 +1100
committerEdward Thomson <ethomson@edwardthomson.com>2020-01-24 09:54:29 -0600
commitfe4efe2e36a23e3647dc205ffcdc2452823bb0b1 (patch)
tree2838b2984ee9b9d1f5e67700b6544d111b0bf29d
parent7e0f5a6ac792620aa308101dcd25736a8226ad83 (diff)
downloadlibgit2-fe4efe2e36a23e3647dc205ffcdc2452823bb0b1.tar.gz
tests: test that clone returns 4321
This conditional was backwards. We should instead test that clone returns 4321, not that 4321 returns clone.
-rw-r--r--tests/online/clone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c
index cbe0ea798..caed18cbf 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -455,8 +455,8 @@ void test_online_clone__can_cancel(void)
{
g_options.fetch_opts.callbacks.transfer_progress = cancel_at_half;
- cl_git_fail_with(
- git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options), 4321);
+ cl_git_fail_with(4321,
+ git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options));
}
static int cred_cb(git_cred **cred, const char *url, const char *user_from_url,