From 3ef57d16005e89ed0ed93a27efff0a66d8662bbc Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 16 May 2023 10:37:41 +0200 Subject: [PATCH] Fix security to authentication state test The "None" authentication will directly progress past authentication, so it's not a good type for this test. --- tests/test.rfb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.rfb.js b/tests/test.rfb.js index de2c13df..eeaa1caa 100644 --- a/tests/test.rfb.js +++ b/tests/test.rfb.js @@ -1177,7 +1177,7 @@ describe('Remote Frame Buffer Protocol Client', function () { }); it('should transition to the Authentication state and continue on successful negotiation', function () { - const authSchemes = [1, 1]; + const authSchemes = [1, 2]; client._negotiateAuthentication = sinon.spy(); client._sock._websocket._receiveData(new Uint8Array(authSchemes)); expect(client._rfbInitState).to.equal('Authentication');