Skip to content

Commit 7beea36

Browse files
committed
test: fix snapshot testing flaky test
1 parent 6ca7da0 commit 7beea36

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/snapshot-testing.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ function createSequentialHandler (responses) {
9898
let callCount = 0
9999
return (req, res) => {
100100
res.writeHead(200, { 'content-type': 'text/plain' })
101-
res.end(responses[callCount] || responses[responses.length - 1])
102-
callCount++
101+
res.end(responses[callCount++] || responses[responses.length - 1])
103102
}
104103
}
105104

0 commit comments

Comments
 (0)