Skip to content

Commit

Permalink
consistency checker relation ID loosened
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroPasotti committed Sep 9, 2024
1 parent 8868a42 commit 02179ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scenario/_consistency_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _check_relation_event(
f"relation event should start with relation endpoint name. {event.name} does "
f"not start with {event.relation.endpoint}.",
)
if event.relation not in state.relations:
if event.relation.id not in {relation.id for relation in state.relations}:
errors.append(
f"cannot emit {event.name} because relation {event.relation.id} is not in the state.",
)
Expand Down

0 comments on commit 02179ac

Please sign in to comment.