aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Gaze.pm3
-rw-r--r--t/app/controller/alert.t2
2 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Gaze.pm b/perllib/FixMyStreet/Gaze.pm
index a072cd246..bccc81d8c 100644
--- a/perllib/FixMyStreet/Gaze.pm
+++ b/perllib/FixMyStreet/Gaze.pm
@@ -8,6 +8,9 @@ use mySociety::Gaze;
sub get_radius_containing_population ($$) {
my ($lat, $lon) = @_;
+ # Don't call out to a real gaze when testing.
+ return 10.0 if FixMyStreet->test_mode;
+
my $dist = eval {
mySociety::Locale::in_gb_locale {
mySociety::Gaze::get_radius_containing_population($lat, $lon, 200_000);
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t
index c7dc9ed09..c42eba6b8 100644
--- a/t/app/controller/alert.t
+++ b/t/app/controller/alert.t
@@ -29,7 +29,7 @@ FixMyStreet::override_config {
$mech->title_like(qr/^Local RSS feeds and email alerts/);
$mech->content_contains('Here are the types of local problem alerts for ‘EH99 1SP’');
$mech->content_contains('html class="no-js" lang="en-gb"');
- $mech->content_contains('Problems within 8.5km');
+ $mech->content_contains('Problems within 10.0km');
$mech->content_contains('rss/pc/EH991SP/2');
$mech->content_contains('rss/pc/EH991SP/5');
$mech->content_contains('rss/pc/EH991SP/10');