mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #3472 from overleaf/jpa-fix-flaky-assertion
[HealthCheckControllerTests] harden assertion on timed-out http requests GitOrigin-RevId: f6e8346b2f9744e7f4d11b8ac6164c236d3d7e74
This commit is contained in:
parent
cb9d207ba0
commit
dc576baa05
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ describe('HealthCheckController', function() {
|
|||
json: true
|
||||
})
|
||||
} catch (err) {
|
||||
expect(err.code).to.equal('ESOCKETTIMEDOUT')
|
||||
expect(err.code).to.be.oneOf(['ETIMEDOUT', 'ESOCKETTIMEDOUT'])
|
||||
return
|
||||
}
|
||||
expect.fail('expected request to fail with timeout error')
|
||||
|
|
Loading…
Reference in a new issue