From 6db1c2bf0dab76e33d0c891fb36f7dcb35ff22c6 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 8 Jun 2020 15:35:28 +0200 Subject: [PATCH] Avoid printing the Websock buffer in tests It takes forever and just messes up the output. --- kasmweb/tests/test.rfb.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kasmweb/tests/test.rfb.js b/kasmweb/tests/test.rfb.js index 4d8c34d..89e45e6 100644 --- a/kasmweb/tests/test.rfb.js +++ b/kasmweb/tests/test.rfb.js @@ -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; });