Skip to content

Commit 20ee794

Browse files
committed
test: retry context delete
1 parent 718b8da commit 20ee794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integ/sagemaker/lineage/conftest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from random import randint
3434
from botocore.exceptions import ClientError
3535

36-
from tests.integ.sagemaker.lineage.helpers import name, names
36+
from tests.integ.sagemaker.lineage.helpers import name, names, retry
3737

3838
SLEEP_TIME_SECONDS = 1
3939
SLEEP_TIME_TWO_SECONDS = 2
@@ -371,7 +371,7 @@ def model_obj(sagemaker_session):
371371

372372
yield model
373373
time.sleep(SLEEP_TIME_SECONDS)
374-
model.delete(disassociate=True)
374+
retry(model.delete(disassociate=True), num_attempts=4)
375375

376376

377377
@pytest.fixture

0 commit comments

Comments
 (0)