summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/geo_near_random1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/geo_near_random1.js')
-rw-r--r--jstests/noPassthrough/geo_near_random1.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/jstests/noPassthrough/geo_near_random1.js b/jstests/noPassthrough/geo_near_random1.js
new file mode 100644
index 00000000000..b401e6447cd
--- /dev/null
+++ b/jstests/noPassthrough/geo_near_random1.js
@@ -0,0 +1,21 @@
+// this tests all points using $near
+load("jstests/libs/geo_near_random.js");
+load( "jstests/libs/slow_weekly_util.js" )
+
+testServer = new SlowWeeklyMongod( "geo_near_random1" )
+db = testServer.getDB( "test" );
+
+
+
+var test = new GeoNearRandomTest("weekly.geo_near_random1");
+
+test.insertPts(1000);
+
+test.testPt([0,0]);
+test.testPt(test.mkPt());
+test.testPt(test.mkPt());
+test.testPt(test.mkPt());
+test.testPt(test.mkPt());
+
+
+testServer.stop();