Skip to content

Commit

Permalink
test: adopt ensureNoDisposablesAreLeakedInTestSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceerhl committed Dec 20, 2024
1 parent d18b81e commit 19e1231
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ suite('Edit session sync', () => {
const disposables = new DisposableStore();

suiteSetup(() => {
ensureNoDisposablesAreLeakedInTestSuite();

sandbox = sinon.createSandbox();

Expand Down Expand Up @@ -176,6 +175,10 @@ suite('Edit session sync', () => {
disposables.clear();
});

suiteTeardown(() => {
disposables.dispose();
});

test('Can apply edit session', async function () {
const fileUri = joinPath(folderUri, 'dir1', 'README.md');
const fileContents = '# readme';
Expand Down Expand Up @@ -222,4 +225,6 @@ suite('Edit session sync', () => {
// Verify that we did not attempt to write the edit session
assert.equal(writeStub.called, false);
});

ensureNoDisposablesAreLeakedInTestSuite();
});

0 comments on commit 19e1231

Please sign in to comment.