diff --git a/plugins/redis/test_redis_cache.ts b/plugins/redis/test_redis_cache.ts index d13a96b..78905a4 100644 --- a/plugins/redis/test_redis_cache.ts +++ b/plugins/redis/test_redis_cache.ts @@ -558,9 +558,9 @@ describe('REDIS Plugin Tests', function() { ); // Since our bogus synchronization strategy doesn't actually synchronize, - // at least five responses should be cache misses (this depends on random + // at least two responses should be cache misses (this depends on random // timing and might be a little flaky). - assert(responses.filter(response => !response.returnedFromCache).length > 5); + assert(responses.filter(response => !response.returnedFromCache).length > 1); }); it('Can stream a hundred thousand bytes to a file in ten chunks', async () => { diff --git a/test/tests.ts b/test/tests.ts index 23b778f..b07a1f0 100644 --- a/test/tests.ts +++ b/test/tests.ts @@ -526,9 +526,9 @@ describe('Data tests', () => { ); // Since our bogus synchronization strategy doesn't actually synchronize, - // at least five responses should be cache misses (this depends on random + // at least two responses should be cache misses (this depends on random // timing and might be a little flaky). - assert(responses.filter(response => !response.returnedFromCache).length > 5); + assert(responses.filter(response => !response.returnedFromCache).length > 1); }); it('Can stream a hundred thousand bytes to a file in ten chunks', async () => {