@@ -1218,6 +1218,9 @@ void test_online_clone__sha256(void)
1218
1218
1219
1219
void test_online_clone__connect_timeout_configurable (void )
1220
1220
{
1221
+ #ifdef GIT_WINHTTP
1222
+ cl_skip ();
1223
+ #else
1221
1224
uint64_t start , finish ;
1222
1225
1223
1226
start = git_time_monotonic ();
@@ -1229,10 +1232,14 @@ void test_online_clone__connect_timeout_configurable(void)
1229
1232
finish = git_time_monotonic ();
1230
1233
1231
1234
cl_assert (finish - start < 1000 );
1235
+ #endif
1232
1236
}
1233
1237
1234
1238
void test_online_clone__connect_timeout_default (void )
1235
1239
{
1240
+ #ifdef GIT_WINHTTP
1241
+ cl_skip ();
1242
+ #else
1236
1243
/* This test takes ~ 75 seconds on Unix. */
1237
1244
if (!cl_is_env_set ("GITTEST_INVASIVE_SPEED" ))
1238
1245
cl_skip ();
@@ -1243,10 +1250,14 @@ void test_online_clone__connect_timeout_default(void)
1243
1250
*/
1244
1251
cl_git_fail_with (GIT_TIMEOUT , git_clone (& g_repo , "http://www.google.com:8000/" , "./refused" , NULL ));
1245
1252
cl_assert (git_error_last () && strstr (git_error_last ()-> message , "timed out" ));
1253
+ #endif
1246
1254
}
1247
1255
1248
1256
void test_online_clone__timeout_configurable_times_out (void )
1249
1257
{
1258
+ #ifdef GIT_WINHTTP
1259
+ cl_skip ();
1260
+ #else
1250
1261
git_repository * failed_repo ;
1251
1262
1252
1263
if (!_remote_speed_timesout )
@@ -1256,14 +1267,19 @@ void test_online_clone__timeout_configurable_times_out(void)
1256
1267
1257
1268
cl_git_fail_with (GIT_TIMEOUT , git_clone
8CF5
span>(& failed_repo , _remote_speed_timesout , "./timedout" , NULL ));
1258
1269
cl_assert (git_error_last () && strstr (git_error_last ()-> message , "timed out" ));
1270
+ #endif
1259
1271
}
1260
1272
1261
1273
void test_online_clone__timeout_configurable_succeeds_slowly (void )
1262
1274
{
1275
+ #ifdef GIT_WINHTTP
1276
+ cl_skip ();
1277
+ #else
1263
1278
if (!_remote_speed_slow )
1264
1279
cl_skip ();
1265
1280
1266
1281
cl_git_pass (git_libgit2_opts (GIT_OPT_SET_SERVER_TIMEOUT , 1000 ));
1267
1282
1268
1283
cl_git_pass (git_clone (& g_repo , _remote_speed_slow , "./slow-but-successful" , NULL ));
1284
+ #endif
1269
1285
}
0 commit comments