mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 01:29:35 +02:00
17 lines
441 B
JavaScript
17 lines
441 B
JavaScript
// 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
|
|
|
|
const redis = require('../../')
|
|
|
|
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)
|