Skip to content

Commit 466a049

Browse files
davimacedodplewis
authored andcommitted
Fix ttl flaky test (#5686)
1 parent 1e20377 commit 466a049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/RedisCacheAdapter.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ describe_only(() => {
3535
});
3636

3737
it('should expire after ttl', done => {
38-
const cache = new RedisCacheAdapter(null, 1);
38+
const cache = new RedisCacheAdapter(null, 50);
3939

4040
cache
4141
.put(KEY, VALUE)
4242
.then(() => cache.get(KEY))
4343
.then(value => expect(value).toEqual(VALUE))
44-
.then(wait.bind(null, 5))
44+
.then(wait.bind(null, 52))
4545
.then(() => cache.get(KEY))
4646
.then(value => expect(value).toEqual(null))
4747
.then(done);

0 commit comments

Comments
 (0)