aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-04-23 17:24:47 +0100
committerDave Arter <davea@mysociety.org>2018-04-23 17:25:20 +0100
commit0a7f68a415febb7613d68681a523946d307a8a2b (patch)
tree4b00e3eb5a20af381bdf4b931da0fa433e374a77
parentd14caaee06b005537adbf448eb8fb80c74bcc859 (diff)
Use explicit ordering for test query
This hopefully works around some odd test failures on Travis.
-rw-r--r--t/open311/getservicerequestupdates.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/open311/getservicerequestupdates.t b/t/open311/getservicerequestupdates.t
index 32fe4bc9e..dad3bb0d1 100644
--- a/t/open311/getservicerequestupdates.t
+++ b/t/open311/getservicerequestupdates.t
@@ -701,7 +701,7 @@ subtest 'check that external_status_code is stored correctly' => sub {
$problem->discard_changes;
is $problem->comments->count, 2, 'two comments after fetching updates';
- my @comments = $problem->comments->all;
+ my @comments = $problem->comments->search(undef, { order_by => [ 'created' ] } )->all;
is $comments[0]->get_extra_metadata('external_status_code'), "060", "correct external status code on first comment";
is $comments[1]->get_extra_metadata('external_status_code'), "101", "correct external status code on second comment";