mirror of https://gitee.com/bigwinds/arangodb
fixed more tests
This commit is contained in:
parent
9598aebc59
commit
01c0da5238
|
@ -115,23 +115,23 @@ function ahuacatlGeoTestSuite () {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
setUp : function () {
|
setUp : function () {
|
||||||
locations = db.UnitTestsAhuacatlLocations;
|
db._drop("UnitTestsAhuacatlLocations");
|
||||||
if (locations.count() == 0) {
|
db._drop("UnitTestsAhuacatlLocationsNon");
|
||||||
for (var lat = -40; lat <= 40; ++lat) {
|
|
||||||
for (var lon = -40; lon <= 40; ++lon) {
|
|
||||||
locations.save({"latitude" : lat, "longitude" : lon });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
locations.ensureGeoIndex("latitude", "longitude");
|
locations = db._create("UnitTestsAhuacatlLocations");
|
||||||
|
for (var lat = -40; lat <= 40; ++lat) {
|
||||||
|
for (var lon = -40; lon <= 40; ++lon) {
|
||||||
|
locations.save({"latitude" : lat, "longitude" : lon });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
locationsNon = db.UnitTestsAhuacatlLocationsNon;
|
locations.ensureGeoIndex("latitude", "longitude");
|
||||||
if (locationsNon.count() == 0) {
|
|
||||||
for (var lat = -40; lat <= 40; ++lat) {
|
locationsNon = db._create("UnitTestsAhuacatlLocationsNon");
|
||||||
for (var lon = -40; lon <= 40; ++lon) {
|
|
||||||
locationsNon.save({"latitude" : lat, "longitude" : lon });
|
for (var lat = -40; lat <= 40; ++lat) {
|
||||||
}
|
for (var lon = -40; lon <= 40; ++lon) {
|
||||||
|
locationsNon.save({"latitude" : lat, "longitude" : lon });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -141,6 +141,8 @@ function ahuacatlGeoTestSuite () {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
tearDown : function () {
|
tearDown : function () {
|
||||||
|
db._drop("UnitTestsAhuacatlLocations");
|
||||||
|
db._drop("UnitTestsAhuacatlLocationsNon");
|
||||||
},
|
},
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -62,15 +62,14 @@ function ahuacatlRefAccessAttributeTestSuite () {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
setUp : function () {
|
setUp : function () {
|
||||||
collection = internal.db.UnitTestsAhuacatlRefAccess;
|
internal.db._drop("UnitTestsAhuacatlRefAccess");
|
||||||
|
collection = internal.db._create("UnitTestsAhuacatlRefAccess");
|
||||||
|
|
||||||
if (collection.count() == 0) {
|
for (var i = 1; i <= 10; ++i) {
|
||||||
for (var i = 1; i <= 10; ++i) {
|
collection.save({ "val" : i });
|
||||||
collection.save({ "val" : i });
|
|
||||||
}
|
|
||||||
|
|
||||||
collection.ensureSkiplist("val");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
collection.ensureSkiplist("val");
|
||||||
},
|
},
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -78,6 +77,7 @@ function ahuacatlRefAccessAttributeTestSuite () {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
tearDown : function () {
|
tearDown : function () {
|
||||||
|
internal.db._drop("UnitTestsAhuacatlRefAccess");
|
||||||
},
|
},
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue