Skip to content

Commit ae2a35b

Browse files
committed
Avoid introducing intermittent errors in test case
The models listed with superuser access at different times are not comparable. However, models listed with superuser access should always have more than the non-superuser access (because of the controller model).
1 parent cb5c30a commit ae2a35b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration/test_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async def test_list_models_user_access(event_loop):
149149
# testing all flag
150150
await user.grant(acl='superuser')
151151
models_all = await controller.list_models(username, all=True)
152-
assert len(models_all) >= len(models1)
152+
assert len(models_all) > len(models2)
153153

154154

155155
@base.bootstrapped

0 commit comments

Comments
 (0)