mirror of https://gitee.com/bigwinds/arangodb
speed up tests
This commit is contained in:
parent
0b7d73bf3b
commit
9b951ff6c2
|
@ -63,7 +63,7 @@ function ahuacatlQueryGeneralEdgesTestSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop(v1);
|
||||
db._drop(v2);
|
||||
db._drop(v3);
|
||||
|
@ -125,7 +125,7 @@ function ahuacatlQueryGeneralEdgesTestSuite() {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
db._drop(v1);
|
||||
db._drop(v2);
|
||||
db._drop(v3);
|
||||
|
@ -714,7 +714,7 @@ function ahuacatlQueryGeneralCommonTestSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop("UnitTestsAhuacatlVertex1");
|
||||
db._drop("UnitTestsAhuacatlVertex2");
|
||||
db._drop("UnitTestsAhuacatlEdge1");
|
||||
|
@ -776,7 +776,7 @@ function ahuacatlQueryGeneralCommonTestSuite() {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
db._drop("UnitTestsAhuacatlVertex1");
|
||||
db._drop("UnitTestsAhuacatlVertex2");
|
||||
db._drop("UnitTestsAhuacatlEdge1");
|
||||
|
@ -998,7 +998,7 @@ function ahuacatlQueryGeneralPathsTestSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop("UnitTestsAhuacatlVertex1");
|
||||
db._drop("UnitTestsAhuacatlVertex2");
|
||||
db._drop("UnitTestsAhuacatlVertex3");
|
||||
|
@ -1056,7 +1056,7 @@ function ahuacatlQueryGeneralPathsTestSuite() {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
db._drop("UnitTestsAhuacatlVertex1");
|
||||
db._drop("UnitTestsAhuacatlVertex2");
|
||||
db._drop("UnitTestsAhuacatlVertex3");
|
||||
|
@ -1236,7 +1236,7 @@ function ahuacatlQueryGeneralTraversalTestSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop("UnitTests_Berliner");
|
||||
db._drop("UnitTests_Hamburger");
|
||||
db._drop("UnitTests_Frankfurter");
|
||||
|
@ -1303,7 +1303,7 @@ function ahuacatlQueryGeneralTraversalTestSuite() {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
graph._drop("werKenntWen", true);
|
||||
},
|
||||
|
||||
|
@ -2062,7 +2062,7 @@ function ahuacatlQueryGeneralCyclesSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop("UnitTests_Berliner");
|
||||
db._drop("UnitTests_Hamburger");
|
||||
db._drop("UnitTests_Frankfurter");
|
||||
|
@ -2125,7 +2125,7 @@ function ahuacatlQueryGeneralCyclesSuite() {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
db._drop("UnitTests_Berliner");
|
||||
db._drop("UnitTests_Hamburger");
|
||||
db._drop("UnitTests_Frankfurter");
|
||||
|
@ -2496,7 +2496,7 @@ function ahuacatlQueryMultiCollectionMadnessTestSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop(v1);
|
||||
db._drop(v2);
|
||||
db._drop(v3);
|
||||
|
@ -2540,7 +2540,7 @@ function ahuacatlQueryMultiCollectionMadnessTestSuite() {
|
|||
graph._registerCompatibilityFunctions();
|
||||
},
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
graph._drop(gN, true);
|
||||
},
|
||||
|
||||
|
@ -2596,8 +2596,3 @@ jsunity.run(ahuacatlQueryGeneralEdgesTestSuite);
|
|||
jsunity.run(ahuacatlQueryMultiCollectionMadnessTestSuite);
|
||||
|
||||
return jsunity.done();
|
||||
|
||||
// Local Variables:
|
||||
// mode: outline-minor
|
||||
// outline-regexp: "^\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @}\\)"
|
||||
// End:
|
||||
|
|
|
@ -73,7 +73,7 @@ function ahuacatlQueryGeneralEdgesTestSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop(v1);
|
||||
db._drop(v2);
|
||||
db._drop(v3);
|
||||
|
@ -134,7 +134,7 @@ function ahuacatlQueryGeneralEdgesTestSuite() {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
db._drop(v1);
|
||||
db._drop(v2);
|
||||
db._drop(v3);
|
||||
|
@ -682,7 +682,7 @@ function ahuacatlQueryGeneralCommonTestSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop("UnitTestsAhuacatlVertex1");
|
||||
db._drop("UnitTestsAhuacatlVertex2");
|
||||
db._drop("UnitTestsAhuacatlEdge1");
|
||||
|
@ -743,7 +743,7 @@ function ahuacatlQueryGeneralCommonTestSuite() {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
db._drop("UnitTestsAhuacatlVertex1");
|
||||
db._drop("UnitTestsAhuacatlVertex2");
|
||||
db._drop("UnitTestsAhuacatlEdge1");
|
||||
|
@ -1024,7 +1024,7 @@ function ahuacatlQueryGeneralTraversalTestSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop(v1);
|
||||
db._drop(v2);
|
||||
db._drop(v3);
|
||||
|
@ -1090,7 +1090,7 @@ function ahuacatlQueryGeneralTraversalTestSuite() {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
graph._drop("werKenntWen", true);
|
||||
},
|
||||
|
||||
|
@ -1358,7 +1358,7 @@ function ahuacatlQueryGeneralCyclesSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop(v1);
|
||||
db._drop(v2);
|
||||
db._drop(v3);
|
||||
|
@ -1420,7 +1420,7 @@ function ahuacatlQueryGeneralCyclesSuite() {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
db._drop("UnitTests_Berliner");
|
||||
db._drop("UnitTests_Hamburger");
|
||||
db._drop("UnitTests_Frankfurter");
|
||||
|
@ -1524,7 +1524,7 @@ function ahuacatlQueryMultiCollectionMadnessTestSuite() {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop(v1);
|
||||
db._drop(v2);
|
||||
db._drop(v3);
|
||||
|
@ -1567,7 +1567,7 @@ function ahuacatlQueryMultiCollectionMadnessTestSuite() {
|
|||
);
|
||||
},
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
graph._drop(gN, true);
|
||||
},
|
||||
|
||||
|
@ -1615,7 +1615,7 @@ function ahuacatlQueryShortestPathTestSuite() {
|
|||
const graphName = "abc";
|
||||
|
||||
return {
|
||||
setUp: function () {
|
||||
setUpAll: function () {
|
||||
db._drop(v1);
|
||||
db._drop(v2);
|
||||
db._drop(v3);
|
||||
|
@ -1672,7 +1672,7 @@ function ahuacatlQueryShortestPathTestSuite() {
|
|||
makeEdge(B._id, A._id, g[e2], 2);
|
||||
},
|
||||
|
||||
tearDown: function () {
|
||||
tearDownAll: function () {
|
||||
db._drop(v1);
|
||||
db._drop(v2);
|
||||
db._drop(v3);
|
||||
|
|
|
@ -52,7 +52,7 @@ function ahuacatlQueryEdgesTestSuite () {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp : function () {
|
||||
setUpAll : function () {
|
||||
db._drop(vn);
|
||||
db._drop("UnitTestsAhuacatlEdge");
|
||||
|
||||
|
@ -86,7 +86,7 @@ function ahuacatlQueryEdgesTestSuite () {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown : function () {
|
||||
tearDownAll : function () {
|
||||
db._drop("UnitTestsAhuacatlVertex");
|
||||
db._drop("UnitTestsAhuacatlEdge");
|
||||
},
|
||||
|
@ -410,7 +410,7 @@ function ahuacatlQueryNeighborsTestSuite () {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp : function () {
|
||||
setUpAll : function () {
|
||||
db._drop(vn);
|
||||
db._drop("UnitTestsAhuacatlEdge");
|
||||
|
||||
|
@ -444,7 +444,7 @@ function ahuacatlQueryNeighborsTestSuite () {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown : function () {
|
||||
tearDownAll : function () {
|
||||
db._drop(vn);
|
||||
db._drop("UnitTestsAhuacatlEdge");
|
||||
},
|
||||
|
@ -673,7 +673,7 @@ function ahuacatlQueryBreadthFirstTestSuite () {
|
|||
/// +--> C <--+
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp : function () {
|
||||
setUpAll : function () {
|
||||
cleanUp();
|
||||
|
||||
vertex = db._create(vn);
|
||||
|
@ -709,7 +709,7 @@ function ahuacatlQueryBreadthFirstTestSuite () {
|
|||
makeEdge("C","A","friend");
|
||||
},
|
||||
|
||||
tearDown : cleanUp,
|
||||
tearDownAll : cleanUp,
|
||||
|
||||
testNonUniqueVerticesDefaultDepth : function() {
|
||||
var query = `WITH ${vn}
|
||||
|
@ -843,7 +843,7 @@ function ahuacatlQueryShortestPathTestSuite () {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp : function () {
|
||||
setUpAll : function () {
|
||||
db._drop(vn);
|
||||
db._drop(en);
|
||||
|
||||
|
@ -866,7 +866,7 @@ function ahuacatlQueryShortestPathTestSuite () {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown : function () {
|
||||
tearDownAll : function () {
|
||||
db._drop(vn);
|
||||
db._drop(en);
|
||||
|
||||
|
@ -1005,7 +1005,7 @@ function ahuacatlQueryNeighborsErrorsSuite () {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp : function () {
|
||||
setUpAll : function () {
|
||||
db._drop(vn);
|
||||
db._drop(en);
|
||||
internal.debugClearFailAt();
|
||||
|
@ -1028,7 +1028,7 @@ function ahuacatlQueryNeighborsErrorsSuite () {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown : function () {
|
||||
tearDownAll : function () {
|
||||
db._drop(vn);
|
||||
db._drop(en);
|
||||
internal.debugClearFailAt();
|
||||
|
@ -1094,7 +1094,7 @@ function ahuacatlQueryShortestpathErrorsSuite () {
|
|||
/// @brief set up
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
setUp : function () {
|
||||
setUpAll : function () {
|
||||
db._drop(vn);
|
||||
db._drop(en);
|
||||
internal.debugClearFailAt();
|
||||
|
@ -1117,7 +1117,7 @@ function ahuacatlQueryShortestpathErrorsSuite () {
|
|||
/// @brief tear down
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
tearDown : function () {
|
||||
tearDownAll : function () {
|
||||
db._drop(vn);
|
||||
db._drop(en);
|
||||
internal.debugClearFailAt();
|
||||
|
|
Loading…
Reference in New Issue