do not give postgres a chance to order arbitrarily
This commit is contained in:
parent
b23780ccf1
commit
e1325eb47a
|
@ -325,7 +325,7 @@ class TestProcessInstanceService(BaseTest):
|
||||||
|
|
||||||
pi_events = ProcessInstanceEventModel.query.filter_by(
|
pi_events = ProcessInstanceEventModel.query.filter_by(
|
||||||
process_instance_id=process_instance.id, event_type=ProcessInstanceEventType.process_instance_migrated.value
|
process_instance_id=process_instance.id, event_type=ProcessInstanceEventType.process_instance_migrated.value
|
||||||
).all()
|
).order_by(ProcessInstanceEventModel.id).all()
|
||||||
assert len(pi_events) == 2
|
assert len(pi_events) == 2
|
||||||
|
|
||||||
process_instance_event = pi_events[0]
|
process_instance_event = pi_events[0]
|
||||||
|
|
Loading…
Reference in New Issue