mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
[misc] move test scripts into test/ tree
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# 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 "../../index.coffee"
|
||||
|
||||
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