aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-05-16 11:33:23 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-05-16 11:33:23 +0100
commit9dc01637b32d7ce8ae97260b3964287b8640f96b (patch)
tree6245f9836c70b421c1c55d6c8151b7e8f83d3ee1 /t/app/controller
parentf2cd1e6b05eaeb6f88716c3c5988ffe3ebf1296f (diff)
Fix timing edge case test failure.
If the creation of this test report and the loading of the dashboard took place within the same second, the test report would appear in a different column than the test expected.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/dashboard.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/controller/dashboard.t b/t/app/controller/dashboard.t
index 903affdcf..c83902c48 100644
--- a/t/app/controller/dashboard.t
+++ b/t/app/controller/dashboard.t
@@ -132,7 +132,7 @@ FixMyStreet::override_config {
},
{
desc => 'confirmed last 2 weeks with no state',
- dt => $now->clone->subtract( weeks => 2 ),
+ dt => $now->clone->subtract( weeks => 2, hours => 1 ),
counts => [1,2,4,4],
report_counts => [2, 1, 1],
},