Skip to content

Commit 57ee3f3

Browse files
[ASYNC] remove flaky marker from OCSP tests after #2283
1 parent 498d928 commit 57ee3f3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

test/unit/aio/test_ocsp.py

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

235235

236-
@pytest.mark.flaky(reruns=3)
237236
async def test_ocsp_single_endpoint():
238237
environ["SF_OCSP_ACTIVATE_NEW_ENDPOINT"] = "True"
239238
SnowflakeOCSP.clear_cache()
@@ -257,7 +256,6 @@ async def test_ocsp_by_post_method():
257256
assert await ocsp.validate(url, connection), f"Failed to validate: {url}"
258257

259258

260-
@pytest.mark.flaky(reruns=3)
261259
async def test_ocsp_with_file_cache(tmpdir):
262260
"""OCSP tests and the cache server and file."""
263261
tmp_dir = str(tmpdir.mkdir("ocsp_response_cache"))
@@ -271,7 +269,6 @@ async def test_ocsp_with_file_cache(tmpdir):
271269
assert await ocsp.validate(url, connection), f"Failed to validate: {url}"
272270

273271

274-
@pytest.mark.flaky(reruns=3)
275272
async def test_ocsp_with_bogus_cache_files(
276273
tmpdir, random_ocsp_response_validation_cache
277274
):
@@ -312,7 +309,6 @@ async def test_ocsp_with_bogus_cache_files(
312309
), f"Failed to validate: {hostname}"
313310

314311

315-
@pytest.mark.flaky(reruns=3)
316312
async def test_ocsp_with_outdated_cache(tmpdir, random_ocsp_response_validation_cache):
317313
with mock.patch(
318314
"snowflake.connector.ocsp_snowflake.OCSP_RESPONSE_VALIDATION_CACHE",
@@ -372,7 +368,6 @@ async def _store_cache_in_file(tmpdir, target_hosts=None):
372368
return filename, target_hosts
373369

374370

375-
@pytest.mark.flaky(reruns=3)
376371
async def test_ocsp_with_invalid_cache_file():
377372
"""OCSP tests with an invalid cache file."""
378373
SnowflakeOCSP.clear_cache() # reset the memory cache
@@ -382,7 +377,6 @@ async def test_ocsp_with_invalid_cache_file():
382377
assert await ocsp.validate(url, connection), f"Failed to validate: {url}"
383378

384379

385-
@pytest.mark.flaky(reruns=3)
386380
@mock.patch(
387381
"snowflake.connector.aio._ocsp_snowflake.SnowflakeOCSP._fetch_ocsp_response",
388382
new_callable=mock.AsyncMock,
@@ -406,7 +400,6 @@ async def test_ocsp_cache_when_server_is_down(
406400
assert not cache_data, "no cache should present because of broken pipe"
407401

408402

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

0 commit comments

Comments
 (0)