From 536a3c461211e9709f9615d27ce3c86c3de5d478 Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Wed, 12 Jun 2019 18:26:08 +0930 Subject: [PATCH] Changing indexing in tests --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 019339b..4741187 100644 --- a/test/test.js +++ b/test/test.js @@ -29,8 +29,7 @@ function setup(db, app){ db.users.insertMany(jsonData.users), db.customers.insertMany(jsonData.customers), db.products.insertMany(common.fixProductDates(jsonData.products)), - db.menu.insertOne(jsonData.menu), - common.runIndexing(app) + db.menu.insertOne(jsonData.menu) ]); }); } @@ -46,6 +45,7 @@ test.before(async () => { db = app.db; await setup(db, app); + await common.runIndexing(app); // Get some data from DB to use in compares products = await db.products.find({}).toArray();