diff --git a/t/geonames.t b/t/geonames.t index c318dee..3929b19 100644 --- a/t/geonames.t +++ b/t/geonames.t @@ -46,7 +46,7 @@ GOOGLE: { ok(ref($location) eq 'HASH'); delta_within($location->{geometry}{location}{lat}, 38.99, 1e-1); delta_within($location->{geometry}{location}{lng}, -77.02, 1e-1); - is($location->{'geocoder'}, undef, 'Verify subsequent reads are cached'); + is($location->{'geocoder'}, 'cache', 'Verify subsequent reads are cached'); $location = $geocoderlist->geocode('Plugh Hospice, Rochester, Earth'); ok(!defined($location)); diff --git a/t/google.t b/t/google.t index 7a30117..8b76ce9 100644 --- a/t/google.t +++ b/t/google.t @@ -51,7 +51,7 @@ GOOGLE: { ok(ref($location) eq 'HASH'); delta_within($location->{geometry}{location}{lat}, 38.99, 1e-1); delta_within($location->{geometry}{location}{lng}, -77.02, 1e-1); - is($location->{'geocoder'}, undef, 'Verify subsequent reads are cached'); + is($location->{'geocoder'}, 'cache', 'Verify subsequent reads are cached'); # $location = $geocoderlist->geocode('Plugh Hospice, Rochester, Earth'); # ok(!defined($location)); diff --git a/t/postcodes.t b/t/postcodes.t index 36445ac..c4ccec6 100644 --- a/t/postcodes.t +++ b/t/postcodes.t @@ -65,7 +65,7 @@ POSTCODES: { ok(ref($location) eq 'HASH'); delta_within($location->{geometry}{location}{lat}, 51.33, 1e-2); delta_within($location->{geometry}{location}{lng}, 1.42, 1e-2); - is($location->{'geocoder'}, undef, 'Verify subsequent reads are cached'); + is($location->{'geocoder'}, 'cache', 'Verify subsequent reads are cached'); $location = $geocoderlist->geocode('Plumstead, London, England'); ok(defined($location));