aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Gaze.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/Gaze.pm')
-rw-r--r--perllib/FixMyStreet/Gaze.pm3
1 files changed, 3 insertions, 0 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);