mirror of
https://git.proxmox.com/git/mirror_novnc
synced 2025-08-24 20:04:36 +00:00
Avoid printing the Websock buffer in tests
It takes forever and just messes up the output.
This commit is contained in:
parent
f694c32fd5
commit
0a6aec3578
@ -107,10 +107,12 @@ describe('Remote Frame Buffer Protocol Client', function () {
|
||||
this._rQ = rQ;
|
||||
};
|
||||
|
||||
// Avoiding printing the entire Websock buffer on errors
|
||||
Websock.prototype.toString = function () { return "[object Websock]"; };
|
||||
});
|
||||
|
||||
after(function () {
|
||||
Websock.prototype._allocateBuffers = Websock.prototype._oldAllocateBuffers;
|
||||
delete Websock.prototype.toString;
|
||||
this.clock.restore();
|
||||
window.requestAnimationFrame = raf;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user