Skip to content

Commit fe4efe2

Browse files
committed
tests: test that clone returns 4321
This conditional was backwards. We should instead test that clone returns 4321, not that 4321 returns clone.
1 parent 7e0f5a6 commit fe4efe2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/online/clone.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ void test_online_clone__can_cancel(void)
455455
{
456456
g_options.fetch_opts.callbacks.transfer_progress = cancel_at_half;
457457

458-
cl_git_fail_with(
459-
git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options), 4321);
458+
cl_git_fail_with(4321,
459+
git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options));
460460
}
461461

462462
static int cred_cb(git_cred **cred, const char *url, const char *user_from_url,

0 commit comments

Comments
 (0)