Skip to content

Commit 50c46b6

Browse files
Remove MockGlobalStorage
1 parent 9b84e0f commit 50c46b6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

extensions/ql-vscode/test/unit-tests/common/invocation-rate-limiter.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe("Invocation rate limiter", () => {
1818
func: () => Promise<T>,
1919
): InvocationRateLimiter<T> {
2020
return new InvocationRateLimiter(
21-
new MockGlobalStorage(),
21+
new MockMemento(),
2222
funcIdentifier,
2323
func,
2424
(s) => createDate(s),
@@ -54,12 +54,6 @@ describe("Invocation rate limiter", () => {
5454
}
5555
}
5656

57-
class MockGlobalStorage extends MockMemento {
58-
public setKeysForSync(_keys: string[]): void {
59-
return;
60-
}
61-
}
62-
6357
it("initially invokes function", async () => {
6458
let numTimesFuncCalled = 0;
6559
const invocationRateLimiter = createInvocationRateLimiter(

0 commit comments

Comments
 (0)