diff --git a/tests/js/server/aql/aql-optimizer-edge-index.js b/tests/js/server/aql/aql-optimizer-edge-index.js index d17e8d9598..7aa6c6cd95 100644 --- a/tests/js/server/aql/aql-optimizer-edge-index.js +++ b/tests/js/server/aql/aql-optimizer-edge-index.js @@ -30,6 +30,7 @@ var jsunity = require('jsunity'); var db = require('@arangodb').db; +var internal = require('internal'); // ////////////////////////////////////////////////////////////////////////////// // / @brief test suite @@ -55,6 +56,7 @@ function optimizerEdgeIndexTestSuite () { e.save('UnitTestsCollection/nono', 'UnitTestsCollection/to' + i, { value: i + '-' + j }); } } + internal.waitForEstimatorSync(); }, tearDown: function () {