Skip to content

Commit

Permalink
Fix test_run_yacat flakiness (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucekdudek authored May 5, 2023
1 parent dece11f commit 2a989ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/goth_tests/assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a989ed

Please sign in to comment.