Skip to content

Commit

Permalink
tests: remove randomness from compliance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jankapunkt committed Nov 24, 2023
1 parent 687b66e commit d5ae484
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/compliance/client-authentication_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit d5ae484

Please sign in to comment.