mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-06-22 02:31:31 +02:00
Start fake test clock at real clock time
Some code relies on the clock having a somewhat sane value, so let's not start at 0.
This commit is contained in:
parent
d5b84d9185
commit
42d437ad25
@ -91,7 +91,7 @@ describe('Remote Frame Buffer Protocol Client', function () {
|
||||
after(FakeWebSocket.restore);
|
||||
|
||||
before(function () {
|
||||
this.clock = clock = sinon.useFakeTimers();
|
||||
this.clock = clock = sinon.useFakeTimers(Date.now());
|
||||
// sinon doesn't support this yet
|
||||
raf = window.requestAnimationFrame;
|
||||
window.requestAnimationFrame = setTimeout;
|
||||
|
Loading…
x
Reference in New Issue
Block a user