stipsan / ioredis-mock

Emulates ioredis by performing all operations in-memory.
MIT License
333 stars 125 forks source link

.ping() returns always 'PONG' #1349

Open arditsinani opened 1 month ago

arditsinani commented 1 month ago

I am trying to implement a healthCheck route on top of ioredis client. I am doing also tests for it like: async healthCheck(): Promise<HealthCheck> { try { await this.client.ping(); return HealthCheck.UP; } catch (_e) { return HealthCheck.DOWN; } } The issue with .ping() is that always returns 'PONG' even though I have called client.disconnect()