From 498e5722300e20a015db96bbce447883e456fe39 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 7 Apr 2014 20:09:08 -0700 Subject: [PATCH] Make self-test less flaky with more waits. --- tools/tests/run.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/tests/run.js b/tools/tests/run.js index cd8019ab89..80e4544544 100644 --- a/tools/tests/run.js +++ b/tools/tests/run.js @@ -51,6 +51,7 @@ selftest.define("run", function () { s.unlink("crash.js"); run.waitSecs(5); run.match("Modified"); + run.waitSecs(5); run.match("restarted"); s.write("empty.js", ""); run.waitSecs(5); @@ -64,6 +65,7 @@ selftest.define("run", function () { // Bundle failure s.unlink("crash.js"); s.write("junk.js", "]"); + run.waitSecs(5); run.match("Modified"); run.match("prevented startup"); run.match("Unexpected token"); @@ -87,6 +89,7 @@ selftest.define("run", function () { "}\n"); run.waitSecs(5); run.match("with code: 137"); + run.waitSecs(5); run.match("restarted"); run.stop(); @@ -100,6 +103,7 @@ selftest.define("run", function () { run.match("Unexpected token"); run.match("file change"); s.unlink("junk.js"); + run.waitSecs(5); run.match("restarted"); run.stop();