Skip to content

Commit

Permalink
[Oxfordshire] Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
davea committed Oct 18, 2024
1 parent fab3991 commit dc9169e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/cobrand/oxfordshire.t
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ FixMyStreet::override_config {

subtest 'extra update CSV columns are present' => sub {

$problems[1]->add_to_comments({
my $comment = $problems[1]->add_to_comments({
text => 'Test update',
user => $counciluser,
send_state => 'processed',
Expand All @@ -318,7 +318,6 @@ FixMyStreet::override_config {

$mech->get_ok('/dashboard?export=1&updates=1');

diag $mech->content;
my @rows = $mech->content_as_csv;
is scalar @rows, 4, '1 (header) + 3 (updates) = 4 lines';
is scalar @{$rows[0]}, 9, '9 columns present';
Expand All @@ -338,6 +337,7 @@ FixMyStreet::override_config {
'Column headers look correct';

is $rows[3]->[8], 'Role', 'Correct role in output';
$comment->delete;
};

subtest 'role filter works okay pre-generated' => sub {
Expand Down

0 comments on commit dc9169e

Please sign in to comment.