casper: Increase timeout for receiving messages.

Empirically we were having test failures due to not waiting long enough here.

(imported from commit f9269f00c0ba2f740dca786773b5bedf9fba0cde)
This commit is contained in:
Tim Abbott 2013-05-16 15:19:59 -04:00 committed by Leo Franchi
parent 1df794efdc
commit 1fae5cfed4
1 changed files with 2 additions and 2 deletions

View File

@ -158,9 +158,9 @@ exports.send_many = function (msgs) {
// Wait to receive queued messages. // Wait to receive queued messages.
exports.wait_for_receive = function (step) { exports.wait_for_receive = function (step) {
// Wait until the last send or get_events result was more than 300 ms ago. // Wait until the last send or get_events result was more than 500 ms ago.
casper.waitFor(function () { casper.waitFor(function () {
return (timestamp() - last_send_or_update) > 300; return (timestamp() - last_send_or_update) > 500;
}, step); }, step);
}; };