mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-22 19:32:54 +03:00
Commented out flaky adapter-cache-memory-ttl
tests
- at least until we can fix them in a reliable way
This commit is contained in:
parent
18eeb9e523
commit
ccc443bf28
@ -24,7 +24,7 @@ describe('Cache Adapter In Memory with Time To Live', function () {
|
||||
assert.equal(cache.get('a'), 'b', 'should get the value from the cache after some time');
|
||||
});
|
||||
|
||||
it('Can get a value from the cache before TTL kicks in', async function () {
|
||||
it.skip('Can get a value from the cache before TTL kicks in', async function () {
|
||||
const cache = new MemoryTTLCache({ttl: 50});
|
||||
cache.set('a', 'b');
|
||||
assert.equal(cache.get('a'), 'b', 'should get the value from the cache');
|
||||
@ -41,7 +41,7 @@ describe('Cache Adapter In Memory with Time To Live', function () {
|
||||
});
|
||||
|
||||
describe('set', function () {
|
||||
it('Can set a value in the cache', async function () {
|
||||
it.skip('Can set a value in the cache', async function () {
|
||||
const cache = new MemoryTTLCache({ttl: 50});
|
||||
|
||||
cache.set('a', 'b');
|
||||
@ -57,7 +57,7 @@ describe('Cache Adapter In Memory with Time To Live', function () {
|
||||
assert.equal(cache.get('a'), undefined, 'should NOT get the value from the cache after TTL time');
|
||||
});
|
||||
|
||||
it('Can override TTL time', async function () {
|
||||
it.skip('Can override TTL time', async function () {
|
||||
const cache = new MemoryTTLCache({ttl: 20});
|
||||
|
||||
cache.set('a', 'b', {ttl: 50});
|
||||
|
Loading…
Reference in New Issue
Block a user