Fixed backend test
This commit is contained in:
@@ -46,8 +46,6 @@ redisClient.setEx = async (...args) => {
|
||||
}
|
||||
};
|
||||
|
||||
// Connect to Redis
|
||||
await redisClient.connect();
|
||||
// Connect to Redis — skip in test (services are mocked) or when REDIS_URL is unset
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
await redisClient.connect();
|
||||
|
||||
Reference in New Issue
Block a user