do not give postgres a chance to order arbitrarily

This commit is contained in:
burnettk 2024-08-06 09:59:56 -04:00
parent b23780ccf1
commit e1325eb47a
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ class TestProcessInstanceService(BaseTest):
pi_events = ProcessInstanceEventModel.query.filter_by(
process_instance_id=process_instance.id, event_type=ProcessInstanceEventType.process_instance_migrated.value
).all()
).order_by(ProcessInstanceEventModel.id).all()
assert len(pi_events) == 2
process_instance_event = pi_events[0]