mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[misc] decaffeinate tests: decaffeinate standalone script
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
# 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
|
||||
// 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
|
||||
|
||||
redis = require "../.."
|
||||
const redis = require('../../')
|
||||
|
||||
rclient = redis.createClient({host:"localhost",port:"6379"})
|
||||
setInterval () ->
|
||||
rclient.healthCheck (err) ->
|
||||
if err?
|
||||
console.log "HEALTH CHECK FAILED", err
|
||||
else
|
||||
console.log "HEALTH CHECK OK"
|
||||
, 1000
|
||||
const rclient = redis.createClient({ host: 'localhost', port: '6379' })
|
||||
|
||||
setInterval(() => {
|
||||
rclient.healthCheck((err) => {
|
||||
if (err) {
|
||||
console.log('HEALTH CHECK FAILED', err)
|
||||
} else {
|
||||
console.log('HEALTH CHECK OK')
|
||||
}
|
||||
})
|
||||
}, 1000)
|
||||
|
||||
Reference in New Issue
Block a user