mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] decaffeinate tests: decaffeinate standalone script
This commit is contained in:
parent
0a2171e9f0
commit
7210b3dfed
1 changed files with 14 additions and 11 deletions
|
@ -1,13 +1,16 @@
|
||||||
# execute this script with a redis container running to test the health check
|
// execute this script with a redis container running to test the health check
|
||||||
# starting and stopping redis with this script running is a good test
|
// starting and stopping redis with this script running is a good test
|
||||||
|
|
||||||
redis = require "../.."
|
const redis = require('../../')
|
||||||
|
|
||||||
rclient = redis.createClient({host:"localhost",port:"6379"})
|
const rclient = redis.createClient({ host: 'localhost', port: '6379' })
|
||||||
setInterval () ->
|
|
||||||
rclient.healthCheck (err) ->
|
setInterval(() => {
|
||||||
if err?
|
rclient.healthCheck((err) => {
|
||||||
console.log "HEALTH CHECK FAILED", err
|
if (err) {
|
||||||
else
|
console.log('HEALTH CHECK FAILED', err)
|
||||||
console.log "HEALTH CHECK OK"
|
} else {
|
||||||
, 1000
|
console.log('HEALTH CHECK OK')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, 1000)
|
||||||
|
|
Loading…
Reference in a new issue