aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-09-24 16:45:04 +0100
committerStruan Donald <struan@exo.org.uk>2012-09-24 16:45:04 +0100
commite21e5ecf4d78a9472618ef4857b26a9fc161d23a (patch)
tree94aa35586bf103a1a9714390c3f8dec1f4f9e53c /t
parent3b24e7a76fa163651e9c3e921e97682c70e97ff3 (diff)
update test in line with error messages changes
Diffstat (limited to 't')
-rw-r--r--t/open311.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/open311.t b/t/open311.t
index 835d8d8cb..ce0a4ed90 100644
--- a/t/open311.t
+++ b/t/open311.t
@@ -37,9 +37,10 @@ my $p = FixMyStreet::App->model('DB::Problem')->new( {
title => 'title',
detail => 'detail',
user => $u,
+ id => 1,
} );
-my $expected_error = qr{.*request failed: 500 Can.t connect to 192.168.50.1:80 \([^)]*\).*};
+my $expected_error = qr{Failed to submit problem 1 over Open311}ism;
warning_like {$o2->send_service_request( $p, { url => 'http://example.com/' }, 1 )} $expected_error, 'warning generated on failed call';