From 4859f426ddb7142b9a3d64956f4d90944ef42145 Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Fri, 4 Jan 2019 14:13:17 -0500 Subject: [PATCH] Adjust timeouts to help Mongo self-tests pass reliably. --- tools/tests/mongo.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/tests/mongo.js b/tools/tests/mongo.js index 418d319149..616fa767f1 100644 --- a/tools/tests/mongo.js +++ b/tools/tests/mongo.js @@ -20,7 +20,7 @@ selftest.define("mongo failover", ["slow"], function () { run.expectExit(0); }); -var testMeteorMongo = function (appDir) { +function testMeteorMongo(appDir) { var s = new Sandbox(); s.createApp(appDir, 'standard-app'); s.cd(appDir); @@ -30,15 +30,18 @@ var testMeteorMongo = function (appDir) { run.match('proxy'); run.waitSecs(15); run.match('Started MongoDB'); + run.waitSecs(15); var mongoRun = s.run('mongo'); + run.waitSecs(15); // Note: when mongo shell's input is not a tty, there is no prompt. mongoRun.write('db.version()\n'); mongoRun.match(/4\.\d+\.\d+/); + run.waitSecs(5); mongoRun.stop(); run.stop(); -}; +} selftest.define("meteor mongo", function () { testMeteorMongo('asdfzasdf');