mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-12 17:28:31 +03:00
Add snapshot testing.
This commit is contained in:
Vendored
+9
-1
@@ -35,5 +35,13 @@ RedisClient.on("connect", () => {
|
||||
});
|
||||
|
||||
export function CloseRedisConnection() {
|
||||
return RedisClient.quit();
|
||||
return new Promise((resolve, reject) =>
|
||||
RedisClient.quit((err, reply) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve(reply);
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user