From 2a989ed31819c22054f41b0d76c7a3a8de623e43 Mon Sep 17 00:00:00 2001 From: Lucjan Dudek Date: Fri, 5 May 2023 17:50:05 +0200 Subject: [PATCH] Fix test_run_yacat flakiness (#1128) --- tests/goth_tests/assertions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/goth_tests/assertions.py b/tests/goth_tests/assertions.py index b63318662..69c19c891 100644 --- a/tests/goth_tests/assertions.py +++ b/tests/goth_tests/assertions.py @@ -24,14 +24,14 @@ async def assert_no_errors(output_lines: EventStream[str]): async def assert_all_invoices_accepted(output_lines: EventStream[str]): """Assert that an invoice is accepted for every provider that confirmed an agreement.""" - unpaid_agreement_providers = set() + unpaid_agreement_providers = list() async for line in output_lines: m = re.search("Agreement confirmed by provider '([^']*)'", line) if m: prov_name = m.group(1) logger.debug("assert_all_invoices_accepted: adding provider '%s'", prov_name) - unpaid_agreement_providers.add(prov_name) + unpaid_agreement_providers.append(prov_name) m = re.search("Accepted invoice from '([^']*)'", line) if m: prov_name = m.group(1)