diff --git a/test/compliance/client-authentication_test.js b/test/compliance/client-authentication_test.js index a214dbf..72624ec 100644 --- a/test/compliance/client-authentication_test.js +++ b/test/compliance/client-authentication_test.js @@ -37,14 +37,12 @@ const client = db.saveClient({ id: 'a', secret: 'b', grants: ['password'] }); const scope = 'read write'; function createDefaultRequest () { - const dice = Math.random() > 0.5; - const currentScope = dice ? scope : scope.split(' '); return createRequest({ body: { grant_type: 'password', username: user.username, password: user.password, - scope: currentScope + scope }, headers: { 'authorization': 'Basic ' + Buffer.from(client.id + ':' + client.secret).toString('base64'),