Disable redis select command in tests

This commit is contained in:
Andrew Kingston 2023-05-31 16:27:49 +01:00
parent ffbbf04e86
commit e3b5d711df
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class RedisWrapper {
CLOSED = false
init(this._select)
await waitForConnection(this._select)
if (this._select) {
if (this._select && !env.isTest()) {
this.getClient().select(this._select)
}
return this