Browse Source

Unit test: Retry downloading large files several times

bel 8 năm trước cách đây
mục cha
commit
a0cfe6b0d3
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      test/public_server.c

+ 3 - 3
test/public_server.c

@@ -3851,10 +3851,10 @@ START_TEST(test_large_file)
 
 #if defined(_WIN32)
 	ck_assert_int_le(retry_fail_cnt, 1);
-	ck_assert_int_ge(retry_fail_cnt, 2);
-#else
-	ck_assert_int_eq(retry_fail_cnt, 3);
+	ck_assert_int_ge(retry_ok_cnt, 2);
+#else	
 	ck_assert_int_eq(retry_fail_cnt, 0);
+    ck_assert_int_eq(retry_ok_cnt, 3);
 #endif
 
 	/* Stop the server */