Skip to content

Commit 84d9173

Browse files
committed
test: retry context delete
1 parent ead0351 commit 84d9173

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
@@ -28,7 +28,7 @@
2828

2929
from smexperiments import trial_component, trial, experiment
3030

31-
from tests.integ.sagemaker.lineage.helpers import name, names
31+
from tests.integ.sagemaker.lineage.helpers import name, names, retry
3232

3333
SLEEP_TIME_SECONDS = 1
3434

@@ -365,7 +365,7 @@ def model_obj(sagemaker_session):
365365

366366
yield model
367367
time.sleep(SLEEP_TIME_SECONDS)
368-
model.delete(disassociate=True)
368+
retry(model.delete(disassociate=True), num_attempts=4)
369369

370370

371371
@pytest.fixture

0 commit comments

Comments
 (0)