Skip to content

Commit eef47a5

Browse files
authored
Fix flaky test #1831 (#1846)
1 parent 24346f7 commit eef47a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/workspace_access/test_groups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from datetime import timedelta
44

55
import pytest
6-
from databricks.sdk.errors import NotFound
6+
from databricks.sdk.errors import NotFound, ResourceConflict
77
from databricks.sdk.retries import retried
88
from databricks.sdk.service.iam import Group, ResourceMeta
99

@@ -125,7 +125,7 @@ def test_delete_ws_groups_should_not_delete_current_ws_groups(ws, make_ucx_group
125125
assert ws.groups.get(ws_group.id).display_name == ws_group.display_name
126126

127127

128-
@retried(on=[NotFound], timeout=timedelta(minutes=2))
128+
@retried(on=[NotFound, ResourceConflict], timeout=timedelta(minutes=2))
129129
def test_delete_ws_groups_should_not_delete_non_reflected_acc_groups(ws, make_ucx_group, sql_backend, inventory_schema):
130130
ws_group, _ = make_ucx_group()
131131
group_manager = GroupManager(sql_backend, ws, inventory_schema, [ws_group.display_name], "ucx-temp-")

0 commit comments

Comments
 (0)