diff --git a/test/test_workflows/test_abstract_workflow.py b/test/test_workflows/test_abstract_workflow.py index c303b7f1e48921df6be5a04ba2fee1cbc69afa35..6530f8565ba4a1ccc185c133978ad1809905dff9 100644 --- a/test/test_workflows/test_abstract_workflow.py +++ b/test/test_workflows/test_abstract_workflow.py @@ -46,7 +46,8 @@ class TestWorkflow: flow.add(B) flow.add(A) flow.run() - assert caplog.record_tuples[1] == ('root', 20, "Workflow started") - assert caplog.record_tuples[2] == ('root', 20, "6") - assert caplog.record_tuples[3] == ('root', 20, "2") - assert caplog.record_tuples[4] == ('root', 20, "3") + pos = int(".log" in caplog.messages[0]) + assert caplog.record_tuples[0 + pos] == ('root', 20, "Workflow started") + assert caplog.record_tuples[1 + pos] == ('root', 20, "6") + assert caplog.record_tuples[2 + pos] == ('root', 20, "2") + assert caplog.record_tuples[3 + pos] == ('root', 20, "3")