Commit fe4efe2e by Edward Thomson

tests: test that clone returns 4321

This conditional was backwards.  We should instead test that clone
returns 4321, not that 4321 returns clone.
parent 7e0f5a6a
...@@ -455,8 +455,8 @@ void test_online_clone__can_cancel(void) ...@@ -455,8 +455,8 @@ void test_online_clone__can_cancel(void)
{ {
g_options.fetch_opts.callbacks.transfer_progress = cancel_at_half; g_options.fetch_opts.callbacks.transfer_progress = cancel_at_half;
cl_git_fail_with( cl_git_fail_with(4321,
git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options), 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, static int cred_cb(git_cred **cred, const char *url, const char *user_from_url,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment