diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-09 22:26:45 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-09 22:26:45 +0100 |
commit | 21d576c363f9a37ef1c7b322169093084f4a5101 (patch) | |
tree | eb75097f70357eed386544b4cca3d639ab2300e8 /t/app/controller/json.t | |
parent | ffb997d441f4ad8443b81fd6ae62ca97e98a3358 (diff) |
Ordering so test doesn't sometimes randomly fail.
Diffstat (limited to 't/app/controller/json.t')
-rw-r--r-- | t/app/controller/json.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/json.t b/t/app/controller/json.t index 7c5dce786..d6820e1be 100644 --- a/t/app/controller/json.t +++ b/t/app/controller/json.t @@ -68,7 +68,7 @@ my $problem_args = { longitude => '-0.23021896608596', }; my $problem = $user->add_to_problems( { %$problem_args, anonymous => 0 } ); -my $anon_problem = $user->add_to_problems( { %$problem_args, anonymous => 1 } ); +my $anon_problem = $user->add_to_problems( { %$problem_args, anonymous => 1, confirmed => '2000-01-01 12:02:00' } ); ok $problem, "created normal test problem"; ok $anon_problem, "created anon test problem"; @@ -92,7 +92,7 @@ is_deeply # { 'anonymous' => 1, 'category' => 'test category', - 'confirmed' => '2000-01-01 12:01:00', + 'confirmed' => '2000-01-01 12:02:00', 'council' => 'Wandsworth Borough Council', 'detail' => 'Test detail', 'id' => $anon_problem->id, |