@@ -248,7 +248,6 @@ async def test_ocsp_bad_validity():
248
248
del environ ["SF_TEST_OCSP_FORCE_BAD_RESPONSE_VALIDITY" ]
249
249
250
250
251
- @pytest .mark .flaky (reruns = 3 )
252
251
async def test_ocsp_single_endpoint ():
253
252
environ ["SF_OCSP_ACTIVATE_NEW_ENDPOINT" ] = "True"
254
253
SnowflakeOCSP .clear_cache ()
@@ -272,7 +271,6 @@ async def test_ocsp_by_post_method():
272
271
assert await ocsp .validate (url , connection ), f"Failed to validate: { url } "
273
272
274
273
275
- @pytest .mark .flaky (reruns = 3 )
276
274
async def test_ocsp_with_file_cache (tmpdir ):
277
275
"""OCSP tests and the cache server and file."""
278
276
tmp_dir = str (tmpdir .mkdir ("ocsp_response_cache" ))
@@ -286,7 +284,6 @@ async def test_ocsp_with_file_cache(tmpdir):
286
284
assert await ocsp .validate (url , connection ), f"Failed to validate: { url } "
287
285
288
286
289
- @pytest .mark .flaky (reruns = 3 )
290
287
async def test_ocsp_with_bogus_cache_files (
291
288
tmpdir , random_ocsp_response_validation_cache
292
289
):
@@ -327,7 +324,6 @@ async def test_ocsp_with_bogus_cache_files(
327
324
), f"Failed to validate: { hostname } "
328
325
329
326
330
- @pytest .mark .flaky (reruns = 3 )
331
327
async def test_ocsp_with_outdated_cache (tmpdir , random_ocsp_response_validation_cache ):
332
328
with mock .patch (
333
329
"snowflake.connector.ocsp_snowflake.OCSP_RESPONSE_VALIDATION_CACHE" ,
@@ -387,7 +383,6 @@ async def _store_cache_in_file(tmpdir, target_hosts=None):
387
383
return filename , target_hosts
388
384
389
385
390
- @pytest .mark .flaky (reruns = 3 )
391
386
async def test_ocsp_with_invalid_cache_file ():
392
387
"""OCSP tests with an invalid cache file."""
393
388
SnowflakeOCSP .clear_cache () # reset the memory cache
@@ -440,7 +435,6 @@ async def test_ocsp_cache_when_server_is_down(tmpdir):
440
435
), "OCSP validation should succeed with fail-open when server is down"
441
436
442
437
443
- @pytest .mark .flaky (reruns = 3 )
444
438
async def test_concurrent_ocsp_requests (tmpdir ):
445
439
"""Run OCSP revocation checks in parallel. The memory and file caches are deleted randomly."""
446
440
cache_file_name = path .join (str (tmpdir ), "cache_file.txt" )
0 commit comments