Use non-throttled timeouts for websockets
This commit is contained in:
parent
8cf6748dce
commit
27573e6dce
7 changed files with 107 additions and 32 deletions
|
@ -32,6 +32,12 @@ describe('WebSocket-Resource', () => {
|
|||
this.clock = this.sandbox.useFakeTimers({
|
||||
now: NOW,
|
||||
});
|
||||
this.sandbox
|
||||
.stub(window.SignalContext.timers, 'setTimeout')
|
||||
.callsFake(setTimeout);
|
||||
this.sandbox
|
||||
.stub(window.SignalContext.timers, 'clearTimeout')
|
||||
.callsFake(clearTimeout);
|
||||
});
|
||||
|
||||
afterEach(function afterEach() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue