Skip to content

Commit

Permalink
reply with 200 after delay
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Feb 19, 2024
1 parent 9c64f0f commit d1f01c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/website/website.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ t.create('status is down if response code is 401')
t.create('status is down if it is unresponsive for more than 3500 ms')
.get('/website.json?url=http://offline.com')
.intercept(nock =>
nock('http://offline.com').head('/').delay(4000).reply(401),
nock('http://offline.com').head('/').delay(4000).reply(200),
)
.expectBadge({ label: 'website', message: 'down' })

Expand Down

0 comments on commit d1f01c7

Please sign in to comment.