Fixing Redis adapter tests (#5599)

This commit is contained in:
Antonio Davi Macedo Coelho de Castro
2019-05-16 15:26:45 -07:00
committed by GitHub
parent dc7d3f149f
commit 2da2a27373

View File

@@ -39,7 +39,7 @@ describe_only(() => {
.put(KEY, VALUE)
.then(() => cache.get(KEY))
.then(value => expect(value).toEqual(VALUE))
.then(wait.bind(null, 2))
.then(wait.bind(null, 5))
.then(() => cache.get(KEY))
.then(value => expect(value).toEqual(null))
.then(done);
@@ -62,7 +62,7 @@ describe_only(() => {
.put(KEY, VALUE, Infinity)
.then(() => cache.get(KEY))
.then(value => expect(value).toEqual(VALUE))
.then(wait.bind(null, 1))
.then(wait.bind(null, 5))
.then(() => cache.get(KEY))
.then(value => expect(value).toEqual(VALUE))
.then(done);
@@ -78,7 +78,7 @@ describe_only(() => {
.put(KEY, VALUE, ttl)
.then(() => cache.get(KEY))
.then(value => expect(value).toEqual(VALUE))
.then(wait.bind(null, 2))
.then(wait.bind(null, 5))
.then(() => cache.get(KEY))
.then(value => expect(value).toEqual(null))
);