Fix security to authentication state test

The "None" authentication will directly progress past authentication, so
it's not a good type for this test.
This commit is contained in:
Pierre Ossman 2023-05-16 10:37:41 +02:00
parent da75689f4c
commit 3ef57d1600
1 changed files with 1 additions and 1 deletions

View File

@ -1177,7 +1177,7 @@ describe('Remote Frame Buffer Protocol Client', function () {
}); });
it('should transition to the Authentication state and continue on successful negotiation', 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._negotiateAuthentication = sinon.spy();
client._sock._websocket._receiveData(new Uint8Array(authSchemes)); client._sock._websocket._receiveData(new Uint8Array(authSchemes));
expect(client._rfbInitState).to.equal('Authentication'); expect(client._rfbInitState).to.equal('Authentication');