Commented out flaky adapter-cache-memory-ttl tests

- at least until we can fix them in a reliable way
This commit is contained in:
Daniel Lockyer 2023-02-22 17:23:56 +01:00
parent 18eeb9e523
commit ccc443bf28
No known key found for this signature in database

View File

@ -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'); 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}); const cache = new MemoryTTLCache({ttl: 50});
cache.set('a', 'b'); cache.set('a', 'b');
assert.equal(cache.get('a'), 'b', 'should get the value from the cache'); 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 () { 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}); const cache = new MemoryTTLCache({ttl: 50});
cache.set('a', 'b'); 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'); 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}); const cache = new MemoryTTLCache({ttl: 20});
cache.set('a', 'b', {ttl: 50}); cache.set('a', 'b', {ttl: 50});