From a19aa66ecce2dc1afefcff77096fb12ad36269dc Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 12 Nov 2021 18:31:19 +0100 Subject: [PATCH] fixing test_workbench_server_condensed --- tests/test_workbench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_workbench.py b/tests/test_workbench.py index 9998decc..2eb161a1 100644 --- a/tests/test_workbench.py +++ b/tests/test_workbench.py @@ -66,7 +66,7 @@ def test_workbench_server_condensed(user: UserClient): assert device['rate']['rating'] == 1 assert device['rate']['type'] == RateComputer.t # TODO JN why haven't same order in actions on each execution? - assert device['actions'][2]['type'] == BenchmarkProcessor.t or device['actions'][2]['type'] == BenchmarkRamSysbench.t + assert any([ac['type'] in [BenchmarkProcessor.t, BenchmarkRamSysbench.t] for ac in device['actions']]) assert 'tag1' in [x['id'] for x in device['tags']]