yeahoffline / redis-mock

Node.js redis client mock
213 stars 111 forks source link

Redis connection failed - connect ECONNREFUSED #190

Open HollPapazian opened 3 years ago

HollPapazian commented 3 years ago

I use redis-mock. And during the tests I don't see any new data in local db, it means jest use redis-mock and not real redis, but if I change port or url from "localhost:6379" to something different I receive an error: Redis connection to localhost:1 failed - connect ECONNREFUSED 127.0.0.1:1Error: connect ECONNREFUSED 127.0.0.1:1 Same thing during building project in the docker.

HollPapazian commented 3 years ago

Solved the problem. Please close issue.

mogbeyi-david commented 3 years ago

@HollPapazian please what was the solution to this problem?