diff options
-rw-r--r-- | t/app/controller/contact.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/app/controller/contact.t b/t/app/controller/contact.t index a69a56ac4..86b845eb3 100644 --- a/t/app/controller/contact.t +++ b/t/app/controller/contact.t @@ -271,9 +271,11 @@ for my $test ( like $email->body, qr/Complaint about report $problem_id/, 'reporting a report' if $test->{fields}{id}; + $problem_main->discard_changes; if ( $problem_id ) { - $problem_main->discard_changes; ok $problem_main->flagged, 'problem flagged'; + } else { + ok !$problem_main->flagged, 'problem not flagged'; } }; |