diff --git a/packages/cache/test/fixtures/base-app/src/cacheable/23a.class-decorator.controller.ts b/packages/cache/test/fixtures/base-app/src/cacheable/23a.class-decorator.controller.ts index fc73bcf5b..52db26338 100644 --- a/packages/cache/test/fixtures/base-app/src/cacheable/23a.class-decorator.controller.ts +++ b/packages/cache/test/fixtures/base-app/src/cacheable/23a.class-decorator.controller.ts @@ -53,7 +53,7 @@ export class ClassDecoratorController { const ret2 = await this.svc.simple() validateMeta(ret2, cacheKey, this.midwayConfig.ttl) - await sleep(ttl * 1001) + await sleep(ttl * 1002) const ret2a = await this.svc.simple() validateMeta(ret2a, cacheKey, this.midwayConfig.ttl) @@ -72,7 +72,7 @@ export class ClassDecoratorController { const ret2 = await this.svc.ttl() validateMeta(ret2, cacheKey, ttl) - await sleep(ttl * 1001) + await sleep(ttl * 1002) const ret2a = await this.svc.ttl() assert(! ret2a[ConfigKey.CacheMetaType]) @@ -101,7 +101,7 @@ export class ClassDecoratorController { assert(ret3a.value === 'OK') validateMeta(ret3a, `${cacheKey}:foo`, ttl) - await sleep(ttl * 1001) + await sleep(ttl * 1002) const ret4 = await this.svc.ttlFn('foo') assert(ret4.value === 'OK') @@ -154,7 +154,7 @@ export class ClassDecoratorController { assert(ret8a.value === 1) validateMeta(ret8a, `${cacheKey}:1`, 1) - await sleep(ttl * 1001) + await sleep(ttl * 1002) const ret9 = await this.svc.ttlFn2('1') assert(ret9.value === 1) diff --git a/packages/cache/test/fixtures/base-app/src/cacheable/25a.this.controller.ts b/packages/cache/test/fixtures/base-app/src/cacheable/25a.this.controller.ts index 9ba50e25b..99bbf142e 100644 --- a/packages/cache/test/fixtures/base-app/src/cacheable/25a.this.controller.ts +++ b/packages/cache/test/fixtures/base-app/src/cacheable/25a.this.controller.ts @@ -53,7 +53,7 @@ export class ThisController { const ret2 = await this.svc.simple() validateMeta(ret2, cacheKey, this.midwayConfig.ttl) - await sleep(this.svc.ttlValue * 1001) + await sleep(this.svc.ttlValue * 1002) const ret2a = await this.svc.simple() validateMeta(ret2a, cacheKey, this.midwayConfig.ttl) @@ -72,7 +72,7 @@ export class ThisController { const ret2 = await this.svc.ttl() validateMeta(ret2, cacheKey, this.svc.ttlValue) - await sleep(this.svc.ttlValue * 1001) + await sleep(this.svc.ttlValue * 1002) const ret2a = await this.svc.ttl() assert(! ret2a[ConfigKey.CacheMetaType]) @@ -101,7 +101,7 @@ export class ThisController { assert(ret3a.value === 'OK') validateMeta(ret3a, `${cacheKey}:foo`, this.svc.ttlValue) - await sleep(this.svc.ttlValue * 1001) + await sleep(this.svc.ttlValue * 1002) const ret4 = await this.svc.ttlFn('foo') assert(ret4.value === 'OK') @@ -154,7 +154,7 @@ export class ThisController { assert(ret8a.value === 1) validateMeta(ret8a, `${cacheKey}:1`, 1) - await sleep(this.svc.ttlValue * 1001) + await sleep(this.svc.ttlValue * 1002) const ret9 = await this.svc.ttlFn2('1') assert(ret9.value === 1)