Fix flaky camera test (#129576)

This commit is contained in:
epenet 2024-11-01 10:15:20 +01:00 committed by GitHub
parent 5900413c08
commit b41c477f44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -929,7 +929,8 @@ async def _test_capabilities(
# Assert WebSocket response
assert msg["type"] == TYPE_RESULT
assert msg["success"]
assert msg["result"] == {"frontend_stream_types": list(expected_types)}
assert msg["result"] == {"frontend_stream_types": ANY}
assert sorted(msg["result"]["frontend_stream_types"]) == sorted(expected_types)
await test(expected_stream_types)