fix(test): PostMessageBusSink tests failing in slow browsers

This commit is contained in:
Marc Laval 2015-09-09 12:18:22 +02:00
parent d6464633fa
commit 55290b9b21
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ export function main() {
/**
* Flushes pending messages and then runs the given function.
*/
function flushMessages(fn: () => void) { TimerWrapper.setTimeout(fn, 10); }
// TODO(mlaval): timeout is fragile, test to be rewritten
function flushMessages(fn: () => void) { TimerWrapper.setTimeout(fn, 40); }
beforeEach(() => { bus = createConnectedMessageBus(); });