@@ -233,7 +233,6 @@ async def test_ocsp_bad_validity():
233
233
del environ ["SF_TEST_OCSP_FORCE_BAD_RESPONSE_VALIDITY" ]
234
234
235
235
236
- @pytest .mark .flaky (reruns = 3 )
237
236
async def test_ocsp_single_endpoint ():
238
237
environ ["SF_OCSP_ACTIVATE_NEW_ENDPOINT" ] = "True"
239
238
SnowflakeOCSP .clear_cache ()
@@ -257,7 +256,6 @@ async def test_ocsp_by_post_method():
257
256
assert await ocsp .validate (url , connection ), f"Failed to validate: { url } "
258
257
259
258
260
- @pytest .mark .flaky (reruns = 3 )
261
259
async def test_ocsp_with_file_cache (tmpdir ):
262
260
"""OCSP tests and the cache server and file."""
263
261
tmp_dir = str (tmpdir .mkdir ("ocsp_response_cache" ))
@@ -271,7 +269,6 @@ async def test_ocsp_with_file_cache(tmpdir):
271
269
assert await ocsp .validate (url , connection ), f"Failed to validate: { url } "
272
270
273
271
274
- @pytest .mark .flaky (reruns = 3 )
275
272
async def test_ocsp_with_bogus_cache_files (
276
273
tmpdir , random_ocsp_response_validation_cache
277
274
):
@@ -312,7 +309,6 @@ async def test_ocsp_with_bogus_cache_files(
312
309
), f"Failed to validate: { hostname } "
313
310
314
311
315
- @pytest .mark .flaky (reruns = 3 )
316
312
async def test_ocsp_with_outdated_cache (tmpdir , random_ocsp_response_validation_cache ):
317
313
with mock .patch (
318
314
"snowflake.connector.ocsp_snowflake.OCSP_RESPONSE_VALIDATION_CACHE" ,
@@ -372,7 +368,6 @@ async def _store_cache_in_file(tmpdir, target_hosts=None):
372
368
return filename , target_hosts
373
369
374
370
375
- @pytest .mark .flaky (reruns = 3 )
376
371
async def test_ocsp_with_invalid_cache_file ():
377
372
"""OCSP tests with an invalid cache file."""
378
373
SnowflakeOCSP .clear_cache () # reset the memory cache
@@ -382,7 +377,6 @@ async def test_ocsp_with_invalid_cache_file():
382
377
assert await ocsp .validate (url , connection ), f"Failed to validate: { url } "
383
378
384
379
385
- @pytest .mark .flaky (reruns = 3 )
386
380
@mock .patch (
387
381
"snowflake.connector.aio._ocsp_snowflake.SnowflakeOCSP._fetch_ocsp_response" ,
388
382
new_callable = mock .AsyncMock ,
@@ -406,7 +400,6 @@ async def test_ocsp_cache_when_server_is_down(
406
400
assert not cache_data , "no cache should present because of broken pipe"
407
401
408
402
409
- @pytest .mark .flaky (reruns = 3 )
410
403
async def test_concurrent_ocsp_requests (tmpdir ):
411
404
"""Run OCSP revocation checks in parallel. The memory and file caches are deleted randomly."""
412
405
cache_file_name = path .join (str (tmpdir ), "cache_file.txt" )
0 commit comments