Fix CI using 127.0.0.1 for tests

This commit is contained in:
Chocobozzz
2022-12-09 11:14:47 +01:00
parent c7c5f8d0f1
commit 2732eeff9e
62 changed files with 312 additions and 322 deletions

View File

@@ -18,11 +18,11 @@ removeFiles () {
dropRedis () {
port=$((9000+$1))
host="localhost"
host="127.0.0.1"
redis-cli -h "$host" KEYS "bull-localhost:$port*" | grep -v empty | xargs -r redis-cli -h "$host" DEL
redis-cli -h "$host" KEYS "redis-localhost:$port*" | grep -v empty | xargs -r redis-cli -h "$host" DEL
redis-cli -h "$host" KEYS "*redis-localhost:$port-" | grep -v empty | xargs -r redis-cli -h "$host" DEL
redis-cli -h "$host" KEYS "bull-127.0.0.1:$port*" | grep -v empty | xargs -r redis-cli -h "$host" DEL
redis-cli -h "$host" KEYS "redis-127.0.0.1:$port*" | grep -v empty | xargs -r redis-cli -h "$host" DEL
redis-cli -h "$host" KEYS "*redis-127.0.0.1:$port-" | grep -v empty | xargs -r redis-cli -h "$host" DEL
}
seq=$(seq 1 6)