mirror of
https://github.com/wassname/talk.git
synced 2026-07-29 11:28:24 +08:00
Replaced node_redis with ioredis
This commit is contained in:
@@ -3,12 +3,6 @@ const cache = require('../../services/cache');
|
||||
const client = createClient();
|
||||
|
||||
beforeEach(() => Promise.all([
|
||||
new Promise((resolve, reject) => client.flushdb((err) => {
|
||||
if (err) {
|
||||
return reject(err);
|
||||
}
|
||||
|
||||
return resolve();
|
||||
})),
|
||||
client.flushdb(),
|
||||
cache.init(),
|
||||
]));
|
||||
|
||||
Reference in New Issue
Block a user