From b5c6c403cb882defa78af34caed88482dba2e167 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Thu, 8 Jun 2017 16:43:23 -0400 Subject: [PATCH] updated reverse boundary radius tests to lower value --- test/unit/fixture/reverse_null_island.js | 2 +- test/unit/fixture/reverse_standard.js | 2 +- test/unit/fixture/reverse_with_boundary_country.js | 2 +- test/unit/fixture/reverse_with_layer_filtering.js | 2 +- ...verse_with_layer_filtering_non_coarse_subset.js | 2 +- test/unit/fixture/reverse_with_source_filtering.js | 2 +- test/unit/query/reverse.js | 14 +++++++------- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/test/unit/fixture/reverse_null_island.js b/test/unit/fixture/reverse_null_island.js index ff9ef745..874518d4 100644 --- a/test/unit/fixture/reverse_null_island.js +++ b/test/unit/fixture/reverse_null_island.js @@ -5,7 +5,7 @@ module.exports = { 'bool': { 'filter': [{ 'geo_distance': { - 'distance': '500km', + 'distance': '3km', 'distance_type': 'plane', 'optimize_bbox': 'indexed', 'center_point': { diff --git a/test/unit/fixture/reverse_standard.js b/test/unit/fixture/reverse_standard.js index 21bc08d3..4a477ce1 100644 --- a/test/unit/fixture/reverse_standard.js +++ b/test/unit/fixture/reverse_standard.js @@ -5,7 +5,7 @@ module.exports = { 'bool': { 'filter': [{ 'geo_distance': { - 'distance': '500km', + 'distance': '3km', 'distance_type': 'plane', 'optimize_bbox': 'indexed', 'center_point': { diff --git a/test/unit/fixture/reverse_with_boundary_country.js b/test/unit/fixture/reverse_with_boundary_country.js index e50ed14d..6677247a 100644 --- a/test/unit/fixture/reverse_with_boundary_country.js +++ b/test/unit/fixture/reverse_with_boundary_country.js @@ -15,7 +15,7 @@ module.exports = { ], 'filter': [{ 'geo_distance': { - 'distance': '500km', + 'distance': '3km', 'distance_type': 'plane', 'optimize_bbox': 'indexed', 'center_point': { diff --git a/test/unit/fixture/reverse_with_layer_filtering.js b/test/unit/fixture/reverse_with_layer_filtering.js index dd9571ad..5d6c53b5 100644 --- a/test/unit/fixture/reverse_with_layer_filtering.js +++ b/test/unit/fixture/reverse_with_layer_filtering.js @@ -6,7 +6,7 @@ module.exports = { 'filter': [ { 'geo_distance': { - 'distance': '500km', + 'distance': '3km', 'distance_type': 'plane', 'optimize_bbox': 'indexed', 'center_point': { diff --git a/test/unit/fixture/reverse_with_layer_filtering_non_coarse_subset.js b/test/unit/fixture/reverse_with_layer_filtering_non_coarse_subset.js index 046a34e5..aba18b08 100644 --- a/test/unit/fixture/reverse_with_layer_filtering_non_coarse_subset.js +++ b/test/unit/fixture/reverse_with_layer_filtering_non_coarse_subset.js @@ -6,7 +6,7 @@ module.exports = { 'filter': [ { 'geo_distance': { - 'distance': '500km', + 'distance': '3km', 'distance_type': 'plane', 'optimize_bbox': 'indexed', 'center_point': { diff --git a/test/unit/fixture/reverse_with_source_filtering.js b/test/unit/fixture/reverse_with_source_filtering.js index 3eb32bb4..b2bcb0d9 100644 --- a/test/unit/fixture/reverse_with_source_filtering.js +++ b/test/unit/fixture/reverse_with_source_filtering.js @@ -6,7 +6,7 @@ module.exports = { 'filter': [ { 'geo_distance': { - 'distance': '500km', + 'distance': '3km', 'distance_type': 'plane', 'optimize_bbox': 'indexed', 'center_point': { diff --git a/test/unit/query/reverse.js b/test/unit/query/reverse.js index a638fc53..d773224b 100644 --- a/test/unit/query/reverse.js +++ b/test/unit/query/reverse.js @@ -16,7 +16,7 @@ module.exports.tests.query = function(test, common) { 'point.lon': -82.50622, 'boundary.circle.lat': 29.49136, 'boundary.circle.lon': -82.50622, - 'boundary.circle.radius': 500 + 'boundary.circle.radius': 3 }); var compiled = JSON.parse( JSON.stringify( query ) ); @@ -33,7 +33,7 @@ module.exports.tests.query = function(test, common) { 'point.lon': 0, 'boundary.circle.lat': 0, 'boundary.circle.lon': 0, - 'boundary.circle.radius': 500 + 'boundary.circle.radius': 3 }); var compiled = JSON.parse( JSON.stringify( query ) ); @@ -67,7 +67,7 @@ module.exports.tests.query = function(test, common) { 'point.lon': -82.50622, 'boundary.circle.lat': 111, 'boundary.circle.lon': 333, - 'boundary.circle.radius': 500 + 'boundary.circle.radius': 3 }; var query = generate(clean); var compiled = JSON.parse( JSON.stringify( query ) ); @@ -102,7 +102,7 @@ module.exports.tests.query = function(test, common) { 'point.lon': -82.50622, 'boundary.circle.lat': 29.49136, 'boundary.circle.lon': -82.50622, - 'boundary.circle.radius': 500, + 'boundary.circle.radius': 3, 'boundary.country': 'ABC' }); @@ -120,7 +120,7 @@ module.exports.tests.query = function(test, common) { 'point.lon': -82.50622, 'boundary.circle.lat': 29.49136, 'boundary.circle.lon': -82.50622, - 'boundary.circle.radius': 500, + 'boundary.circle.radius': 3, 'sources': ['test'] }); @@ -138,7 +138,7 @@ module.exports.tests.query = function(test, common) { 'point.lon': -82.50622, 'boundary.circle.lat': 29.49136, 'boundary.circle.lon': -82.50622, - 'boundary.circle.radius': 500, + 'boundary.circle.radius': 3, // only venue, address, and street layers should be retained 'layers': ['neighbourhood', 'venue', 'locality', 'address', 'region', 'street', 'country'] }); @@ -158,7 +158,7 @@ module.exports.tests.query = function(test, common) { 'point.lon': -82.50622, 'boundary.circle.lat': 29.49136, 'boundary.circle.lon': -82.50622, - 'boundary.circle.radius': 500, + 'boundary.circle.radius': 3, // only venue, address, and street layers should be retained 'layers': ['neighbourhood', 'venue', 'street', 'locality'] });