[misc] move test scripts into test/ tree

This commit is contained in:
Jakob Ackermann
2020-11-09 16:11:11 +00:00
parent 39809562fd
commit 69df7f5bb3
3 changed files with 3 additions and 3 deletions
@@ -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