Skip to content

Commit f313648

Browse files
norascheuchelenatanasoiu
authored andcommitted
Combine afterEach calls
1 parent 8521138 commit f313648

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

extensions/ql-vscode/src/vscode-tests/no-workspace/remote-queries/remote-query-history.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ describe('Remote queries and query history manager', function() {
8787
// set a higher timeout since recursive delete below may take a while, expecially on Windows.
8888
this.timeout(120000);
8989
deleteHistoryState();
90+
disposables.dispose(testDisposeHandler);
91+
sandbox.restore();
9092
});
9193

9294
beforeEach(() => {
@@ -121,11 +123,6 @@ describe('Remote queries and query history manager', function() {
121123
openTextDocumentSpy = sandbox.spy(workspace, 'openTextDocument');
122124
});
123125

124-
afterEach(() => {
125-
disposables.dispose(testDisposeHandler);
126-
sandbox.restore();
127-
});
128-
129126
it('should read query history', async () => {
130127
await qhm.readQueryHistory();
131128

0 commit comments

Comments
 (0)