X Tutup
Skip to content

Commit 55290b9

Browse files
committed
fix(test): PostMessageBusSink tests failing in slow browsers
1 parent d646463 commit 55290b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/angular2/test/web_workers/shared/message_bus_spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ export function main() {
110110
/**
111111
* Flushes pending messages and then runs the given function.
112112
*/
113-
function flushMessages(fn: () => void) { TimerWrapper.setTimeout(fn, 10); }
113+
// TODO(mlaval): timeout is fragile, test to be rewritten
114+
function flushMessages(fn: () => void) { TimerWrapper.setTimeout(fn, 40); }
114115

115116
beforeEach(() => { bus = createConnectedMessageBus(); });
116117

0 commit comments

Comments
 (0)
X Tutup