@@ -1218,6 +1218,9 @@ void test_online_clone__sha256(void)
12181218
12191219void test_online_clone__connect_timeout_configurable (void )
12201220{
1221+ #ifdef GIT_WINHTTP
1222+ cl_skip ();
1223+ #else
12211224 uint64_t start , finish ;
12221225
12231226 start = git_time_monotonic ();
@@ -1229,10 +1232,14 @@ void test_online_clone__connect_timeout_configurable(void)
12291232 finish = git_time_monotonic ();
12301233
12311234 cl_assert (finish - start < 1000 );
1235+ #endif
12321236}
12331237
12341238void test_online_clone__connect_timeout_default (void )
12351239{
1240+ #ifdef GIT_WINHTTP
1241+ cl_skip ();
1242+ #else
12361243 /* This test takes ~ 75 seconds on Unix. */
12371244 if (!cl_is_env_set ("GITTEST_INVASIVE_SPEED" ))
12381245 cl_skip ();
@@ -1243,10 +1250,14 @@ void test_online_clone__connect_timeout_default(void)
12431250 */
12441251 cl_git_fail_with (GIT_TIMEOUT , git_clone (& g_repo , "http://www.google.com:8000/" , "./refused" , NULL ));
12451252 cl_assert (git_error_last () && strstr (git_error_last ()-> message , "timed out" ));
1253+ #endif
12461254}
12471255
12481256void test_online_clone__timeout_configurable_times_out (void )
12491257{
1258+ #ifdef GIT_WINHTTP
1259+ cl_skip ();
1260+ #else
12501261 git_repository * failed_repo ;
12511262
12521263 if (!_remote_speed_timesout )
@@ -1256,14 +1267,19 @@ void test_online_clone__timeout_configurable_times_out(void)
12561267
12571268 cl_git_fail_with (GIT_TIMEOUT , git_clone (& failed_repo , _remote_speed_timesout , "./timedout" , NULL ));
12581269 cl_assert (git_error_last () && strstr (git_error_last ()-> message , "timed out" ));
1270+ #endif
12591271}
12601272
12611273void test_online_clone__timeout_configurable_succeeds_slowly (void )
12621274{
1275+ #ifdef GIT_WINHTTP
1276+ cl_skip ();
1277+ #else
12631278 if (!_remote_speed_slow )
12641279 cl_skip ();
12651280
12661281 cl_git_pass (git_libgit2_opts (GIT_OPT_SET_SERVER_TIMEOUT , 1000 ));
12671282
12681283 cl_git_pass (git_clone (& g_repo , _remote_speed_slow , "./slow-but-successful" , NULL ));
1284+ #endif
12691285}
0 commit comments