Skip to content

Commit

Permalink
debug test on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
animir committed Dec 8, 2023
1 parent bd8c70f commit 4bc1225
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/ExpressBruteFlexible.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ describe('ExpressBruteFlexible', async function ExpressBruteFlexibleTest() {
const mockRes = Object.assign({}, resObj);
mockRes.send = (obj) => {
const blockDuration = obj.error.nextValidRequestDate.getTime() - Date.now();
console.log('sequenceLength', sequenceLength)
console.log('blockDuration', blockDuration)
if (blockDuration > 1000 && blockDuration <= 2000 && sequenceLength === 0) {
sequenceLength++;
}
Expand Down

0 comments on commit 4bc1225

Please sign in to comment.