mirror of https://github.com/zulip/zulip.git
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:
parent
1df794efdc
commit
1fae5cfed4
|
@ -158,9 +158,9 @@ exports.send_many = function (msgs) {
|
|||
|
||||
// Wait to receive queued messages.
|
||||
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 () {
|
||||
return (timestamp() - last_send_or_update) > 300;
|
||||
return (timestamp() - last_send_or_update) > 500;
|
||||
}, step);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue