We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfb838a commit b5759d0Copy full SHA for b5759d0
test/refresh.test.ts
@@ -375,13 +375,13 @@ describe("dynamic refresh", function () {
375
376
// after refreshInterval, should really refresh
377
await sleepInMs(2 * 1000 + 1);
378
- for (let i = 0; i < 5; i++) {
+ for (let i = 0; i < 5; i++) { // in practice, refresh should not be used in this way
379
settings.refresh(); // refresh "concurrently"
380
}
381
expect(listKvRequestCount).to.be.at.most(2);
382
expect(getKvRequestCount).to.be.at.most(1);
383
384
- await sleepInMs(1000);
+ await sleepInMs(1000); // wait for all 5 refresh attempts to finish
385
386
expect(listKvRequestCount).eq(2);
387
expect(getKvRequestCount).eq(1);
0 commit comments