From 42526ea5a82ffdec2839dc3c8a31187b4a30ce4e Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Thu, 22 Jun 2017 14:06:53 -0400 Subject: [PATCH] Additional timeouts for CSS hot code push tests. --- tools/tests/hot-code-push.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/tests/hot-code-push.js b/tools/tests/hot-code-push.js index f64d98860f..206d8e25cd 100644 --- a/tools/tests/hot-code-push.js +++ b/tools/tests/hot-code-push.js @@ -55,6 +55,7 @@ jquery my-package`); run.match(/my-package.*added,/); run.match("client connected"); + run.waitSecs(45); run.match("numCssChanges: 0"); s.write("packages/my-package/foo.css", "body { background-color: blue; }"); @@ -70,11 +71,13 @@ appcache`); run.match("server restarted"); run.match("numCssChanges: 0"); run.match(/background-color: (blue|rgb\(0, 0, 255\))/); + run.waitSecs(30); s.write("packages/my-package/foo.css", "body { background-color: red; }"); run.match("Client modified -- refreshing"); run.match("numCssChanges: 1"); run.match(/background-color: (red|rgb\(255, 0, 0\))/); + run.waitSecs(20); // XXX: Remove me. This shouldn't be needed, but sometimes // if we run too quickly on fast (or Linux?) machines, it looks @@ -86,6 +89,7 @@ jquery`); run.match(/my-package.*removed from your project/); run.match("numCssChanges: 0"); run.match(/background-color: (transparent|rgba\(0, 0, 0, 0\))/); + run.waitSecs(30); run.stop(); });