Skip to content

Commit b5759d0

Browse files
add more comments
1 parent cfb838a commit b5759d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/refresh.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,13 @@ describe("dynamic refresh", function () {
375375

376376
// after refreshInterval, should really refresh
377377
await sleepInMs(2 * 1000 + 1);
378-
for (let i = 0; i < 5; i++) {
378+
for (let i = 0; i < 5; i++) { // in practice, refresh should not be used in this way
379379
settings.refresh(); // refresh "concurrently"
380380
}
381381
expect(listKvRequestCount).to.be.at.most(2);
382382
expect(getKvRequestCount).to.be.at.most(1);
383383

384-
await sleepInMs(1000);
384+
await sleepInMs(1000); // wait for all 5 refresh attempts to finish
385385

386386
expect(listKvRequestCount).eq(2);
387387
expect(getKvRequestCount).eq(1);

0 commit comments

Comments
 (0)