Skip to content

Commit 84fc1ff

Browse files
authored
testing: fix memory leak during unit tests (microsoft#187488)
For microsoft#187471
1 parent 5822d97 commit 84fc1ff

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/vs/workbench/api/test/browser/extHostTesting.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ suite('ExtHost Testing', () => {
9393

9494
teardown(() => {
9595
single.dispose();
96+
sinon.restore();
9697
});
9798

9899
suite('OwnedTestCollection', () => {

src/vs/workbench/contrib/debug/test/browser/callStack.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ suite('Debug - CallStack', () => {
7676
mockRawSession = new MockRawSession();
7777
});
7878

79+
teardown(() => {
80+
sinon.restore();
81+
});
82+
7983
// Threads
8084

8185
test('threads simple', () => {

0 commit comments

Comments
 (0)