From 466a049bd0c2ed57f3b20617462124f42a96b79f Mon Sep 17 00:00:00 2001 From: Antonio Davi Macedo Coelho de Castro Date: Thu, 13 Jun 2019 13:06:16 -0700 Subject: [PATCH] Fix ttl flaky test (#5686) --- spec/RedisCacheAdapter.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/RedisCacheAdapter.spec.js b/spec/RedisCacheAdapter.spec.js index 7dc826d1..7f463262 100644 --- a/spec/RedisCacheAdapter.spec.js +++ b/spec/RedisCacheAdapter.spec.js @@ -35,13 +35,13 @@ describe_only(() => { }); it('should expire after ttl', done => { - const cache = new RedisCacheAdapter(null, 1); + const cache = new RedisCacheAdapter(null, 50); cache .put(KEY, VALUE) .then(() => cache.get(KEY)) .then(value => expect(value).toEqual(VALUE)) - .then(wait.bind(null, 5)) + .then(wait.bind(null, 52)) .then(() => cache.get(KEY)) .then(value => expect(value).toEqual(null)) .then(done);