assert no RPC leakage in notebook tests

This commit is contained in:
Johannes Rieken 2021-02-19 17:05:19 +01:00
parent 3723081d63
commit 61df1625ef
2 changed files with 5 additions and 2 deletions

View file

@ -33,7 +33,7 @@ suite('Notebook Document', function () {
const disposables: vscode.Disposable[] = [];
suiteTeardown(async function () {
// utils.assertNoRpc();
utils.assertNoRpc();
await utils.revertAllDirty();
await utils.closeAllEditors();
utils.disposeAll(disposables);

View file

@ -6,7 +6,7 @@
import 'mocha';
import * as assert from 'assert';
import * as vscode from 'vscode';
import { createRandomFile, asPromise, disposeAll, closeAllEditors, revertAllDirty, saveAllEditors } from '../utils';
import { createRandomFile, asPromise, disposeAll, closeAllEditors, revertAllDirty, saveAllEditors, assertNoRpc } from '../utils';
// Since `workbench.action.splitEditor` command does await properly
// Notebook editor/document events are not guaranteed to be sent to the ext host when promise resolves
@ -70,6 +70,9 @@ suite('Notebook API tests', function () {
const disposables: vscode.Disposable[] = [];
suiteTeardown(async function () {
assertNoRpc();
await revertAllDirty();
await closeAllEditors();