Skip to content

Commit 404bf8e

Browse files
[ASYNC] remove flaky marker from OCSP tests after #2283
1 parent 4d5ed38 commit 404bf8e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/unit/aio/test_ocsp.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ async def test_ocsp_bad_validity():
248248
del environ["SF_TEST_OCSP_FORCE_BAD_RESPONSE_VALIDITY"]
249249

250250

251-
@pytest.mark.flaky(reruns=3)
252251
async def test_ocsp_single_endpoint():
253252
environ["SF_OCSP_ACTIVATE_NEW_ENDPOINT"] = "True"
254253
SnowflakeOCSP.clear_cache()
@@ -272,7 +271,6 @@ async def test_ocsp_by_post_method():
272271
assert await ocsp.validate(url, connection), f"Failed to validate: {url}"
273272

274273

275-
@pytest.mark.flaky(reruns=3)
276274
async def test_ocsp_with_file_cache(tmpdir):
277275
"""OCSP tests and the cache server and file."""
278276
tmp_dir = str(tmpdir.mkdir("ocsp_response_cache"))
@@ -286,7 +284,6 @@ async def test_ocsp_with_file_cache(tmpdir):
286284
assert await ocsp.validate(url, connection), f"Failed to validate: {url}"
287285

288286

289-
@pytest.mark.flaky(reruns=3)
290287
async def test_ocsp_with_bogus_cache_files(
291288
tmpdir, random_ocsp_response_validation_cache
292289
):
@@ -327,7 +324,6 @@ async def test_ocsp_with_bogus_cache_files(
327324
), f"Failed to validate: {hostname}"
328325

329326

330-
@pytest.mark.flaky(reruns=3)
331327
async def test_ocsp_with_outdated_cache(tmpdir, random_ocsp_response_validation_cache):
332328
with mock.patch(
333329
"snowflake.connector.ocsp_snowflake.OCSP_RESPONSE_VALIDATION_CACHE",
@@ -387,7 +383,6 @@ async def _store_cache_in_file(tmpdir, target_hosts=None):
387383
return filename, target_hosts
388384

389385

390-
@pytest.mark.flaky(reruns=3)
391386
async def test_ocsp_with_invalid_cache_file():
392387
"""OCSP tests with an invalid cache file."""
393388
SnowflakeOCSP.clear_cache() # reset the memory cache
@@ -440,7 +435,6 @@ async def test_ocsp_cache_when_server_is_down(tmpdir):
440435
), "OCSP validation should succeed with fail-open when server is down"
441436

442437

443-
@pytest.mark.flaky(reruns=3)
444438
async def test_concurrent_ocsp_requests(tmpdir):
445439
"""Run OCSP revocation checks in parallel. The memory and file caches are deleted randomly."""
446440
cache_file_name = path.join(str(tmpdir), "cache_file.txt")

0 commit comments

Comments
 (0)