Skip to content

Commit cb5c30a

Browse files
committed
Revise test case that checks the listed models
Checking exact list of models from different points is not reliable in CI tests as there are many models created and destroyed in the concurrent event loop. Checking the number of models instead should be solid.
1 parent 5d59db1 commit cb5c30a

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 models1 == models_all
152+
assert len(models_all) >= len(models1)
153153

154154

155155
@base.bootstrapped

0 commit comments

Comments
 (0)