Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonvt committed Nov 17, 2023
1 parent 223221e commit 290adbf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/tests_unit/test_data_classes/test_capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,9 @@ def test_raw_acl_database_scope(self, cognite_client, extra_existing):
if extra_existing:
assert missing == [RawAcl([RawAcl.Action.Write], RawAcl.Scope.Table({"db1": ["t1"]}))]
else:
assert missing == [
RawAcl([RawAcl.Action.Read], RawAcl.Scope.Table({"db1": ["t3"]})),
RawAcl([RawAcl.Action.Write], RawAcl.Scope.Table({"db1": ["t1"]})),
]
assert len(missing) == 2
assert RawAcl([RawAcl.Action.Read], RawAcl.Scope.Table({"db1": ["t3"]})) in missing
assert RawAcl([RawAcl.Action.Write], RawAcl.Scope.Table({"db1": ["t1"]})) in missing


@pytest.mark.parametrize(
Expand Down

0 comments on commit 290adbf

Please sign in to comment.