Fixing Redis adapter tests (#5599)
This commit is contained in:
committed by
GitHub
parent
dc7d3f149f
commit
2da2a27373
@@ -39,7 +39,7 @@ describe_only(() => {
|
|||||||
.put(KEY, VALUE)
|
.put(KEY, VALUE)
|
||||||
.then(() => cache.get(KEY))
|
.then(() => cache.get(KEY))
|
||||||
.then(value => expect(value).toEqual(VALUE))
|
.then(value => expect(value).toEqual(VALUE))
|
||||||
.then(wait.bind(null, 2))
|
.then(wait.bind(null, 5))
|
||||||
.then(() => cache.get(KEY))
|
.then(() => cache.get(KEY))
|
||||||
.then(value => expect(value).toEqual(null))
|
.then(value => expect(value).toEqual(null))
|
||||||
.then(done);
|
.then(done);
|
||||||
@@ -62,7 +62,7 @@ describe_only(() => {
|
|||||||
.put(KEY, VALUE, Infinity)
|
.put(KEY, VALUE, Infinity)
|
||||||
.then(() => cache.get(KEY))
|
.then(() => cache.get(KEY))
|
||||||
.then(value => expect(value).toEqual(VALUE))
|
.then(value => expect(value).toEqual(VALUE))
|
||||||
.then(wait.bind(null, 1))
|
.then(wait.bind(null, 5))
|
||||||
.then(() => cache.get(KEY))
|
.then(() => cache.get(KEY))
|
||||||
.then(value => expect(value).toEqual(VALUE))
|
.then(value => expect(value).toEqual(VALUE))
|
||||||
.then(done);
|
.then(done);
|
||||||
@@ -78,7 +78,7 @@ describe_only(() => {
|
|||||||
.put(KEY, VALUE, ttl)
|
.put(KEY, VALUE, ttl)
|
||||||
.then(() => cache.get(KEY))
|
.then(() => cache.get(KEY))
|
||||||
.then(value => expect(value).toEqual(VALUE))
|
.then(value => expect(value).toEqual(VALUE))
|
||||||
.then(wait.bind(null, 2))
|
.then(wait.bind(null, 5))
|
||||||
.then(() => cache.get(KEY))
|
.then(() => cache.get(KEY))
|
||||||
.then(value => expect(value).toEqual(null))
|
.then(value => expect(value).toEqual(null))
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user