From d827b521c6f32388ff7026ab3fa2b2a998203e8c Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Mon, 9 Nov 2020 17:40:25 +0000 Subject: [PATCH] [misc] test/unit: loosely match the passed redis options The rewrite will pass a cloned object through. --- libraries/redis-wrapper/test/unit/src/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/redis-wrapper/test/unit/src/test.js b/libraries/redis-wrapper/test/unit/src/test.js index fee144c990..af1c3db190 100644 --- a/libraries/redis-wrapper/test/unit/src/test.js +++ b/libraries/redis-wrapper/test/unit/src/test.js @@ -72,7 +72,7 @@ describe('index', function () { return it('should call createClient for the ioredis driver in single-instance mode if a non array is passed', function () { const client = this.redis.createClient(this.standardOpts) return this.ioredisConstructor - .calledWith(this.standardOpts) + .calledWith(sinon.match(this.standardOpts)) .should.equal(true) }) })