From 0a6aec357850e4681ecfc6cbf74196dc96dbf75b 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. --- tests/test.rfb.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test.rfb.js b/tests/test.rfb.js index d5fa4733..37ef29d6 100644 --- a/tests/test.rfb.js +++ b/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; });