Skip to content

Commit d5ae484

Browse files
committed
tests: remove randomness from compliance tests
1 parent 687b66e commit d5ae484

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/compliance/client-authentication_test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ const client = db.saveClient({ id: 'a', secret: 'b', grants: ['password'] });
3737
const scope = 'read write';
3838

3939
function createDefaultRequest () {
40-
const dice = Math.random() > 0.5;
41-
const currentScope = dice ? scope : scope.split(' ');
4240
return createRequest({
4341
body: {
4442
grant_type: 'password',
4543
username: user.username,
4644
password: user.password,
47-
scope: currentScope
45+
scope
4846
},
4947
headers: {
5048
'authorization': 'Basic ' + Buffer.from(client.id + ':' + client.secret).toString('base64'),

0 commit comments

Comments
 (0)