Skip to content

Commit

Permalink
[Kingston] Fix flaky test due to sent order.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed May 13, 2024
1 parent 0e27af4 commit 517d1a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/app/controller/waste_kingston_r.t
Expand Up @@ -237,8 +237,9 @@ FixMyStreet::override_config {
FixMyStreet::Script::Reports::send();
my $req = Open311->test_req_used;
my $cgi = CGI::Simple->new($req->content);
is $cgi->param('attribute[Action]'), '1';
is $cgi->param('attribute[Reason]'), '1';
# Not sure which one will have been sent last
like $cgi->param('attribute[Action]'), qr/^[13]$/;
like $cgi->param('attribute[Reason]'), qr/^[12]$/;
};

subtest 'Request refuse exchange' => sub {
Expand Down

0 comments on commit 517d1a5

Please sign in to comment.