diff options
Diffstat (limited to 'tests/online')
-rw-r--r-- | tests/online/clone.c | 5 | ||||
-rw-r--r-- | tests/online/fetch.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index efc76d958..be4421ae5 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -273,7 +273,7 @@ static int cancel_at_half(const git_transfer_progress *stats, void *payload) GIT_UNUSED(payload); if (stats->received_objects > (stats->total_objects/2)) - return 1; + return 4321; return 0; } @@ -281,7 +281,8 @@ void test_online_clone__can_cancel(void) { g_options.remote_callbacks.transfer_progress = cancel_at_half; - cl_git_fail_with(git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options), GIT_EUSER); + cl_git_fail_with( + git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options), 4321); } diff --git a/tests/online/fetch.c b/tests/online/fetch.c index 5153a7ae0..7e9dfdbbe 100644 --- a/tests/online/fetch.c +++ b/tests/online/fetch.c @@ -129,7 +129,7 @@ static int cancel_at_half(const git_transfer_progress *stats, void *payload) GIT_UNUSED(payload); if (stats->received_objects > (stats->total_objects/2)) - return -1; + return -4321; return 0; } @@ -147,7 +147,7 @@ void test_online_fetch__can_cancel(void) git_remote_set_callbacks(remote, &callbacks); cl_git_pass(git_remote_connect(remote, GIT_DIRECTION_FETCH)); - cl_git_fail_with(git_remote_download(remote), GIT_EUSER); + cl_git_fail_with(git_remote_download(remote), -4321); git_remote_disconnect(remote); git_remote_free(remote); } |