Skip to content

Commit

Permalink
test: fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Jul 16, 2018
1 parent a5b43b1 commit cf2c086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/base_token/base_token.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('BaseToken', () => {
});
const value = await token.save();
const jti = this.getTokenJti(value);
timekeeper.travel(Date.now() + (60 * 1000));
timekeeper.travel(((Date.now() / 1000 | 0) + 60) * 1000); // eslint-disable-line no-bitwise
token = await this.provider.AccessToken.find(value);
await token.save();
expect(this.adapter.upsert.calledWith(jti, sinon.match({}), 3600)).to.be.true;
Expand Down

0 comments on commit cf2c086

Please sign in to comment.