Close the score import redis queue on shutdown/endtests

This commit is contained in:
zkldi
2021-11-12 03:00:23 +00:00
parent 313f37673b
commit 4e233318a9
3 changed files with 10 additions and 0 deletions
@@ -2,10 +2,12 @@ import { CloseMongoConnection } from "external/mongo/db";
import { CloseRedisPubSub } from "external/redis/redis-IPC";
import { CloseRedisConnection } from "external/redis/redis";
import { CloseServerConnection } from "./mock-api";
import { CloseScoreImportQueue } from "lib/score-import/worker/queue";
export async function CloseAllConnections() {
await CloseMongoConnection();
await CloseServerConnection();
await CloseRedisConnection();
await CloseRedisPubSub();
await CloseScoreImportQueue();
}