Skip to content

Commit a0a1c2c

Browse files
move to utils.sleep
1 parent ec109bd commit a0a1c2c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/features/PowerShellNotebooks.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { before } from "mocha";
1010
import os = require("os");
1111
import { readFileSync } from "fs";
1212
import { CommentType } from "../../src/settings";
13+
import * as utils from "../../src/utils";
1314

1415
const notebookDir = [
1516
__dirname,
@@ -195,7 +196,7 @@ suite("PowerShellNotebooks tests", () => {
195196
await vscode.commands.executeCommand("vscode.openWith", notebookSimpleMixedComments, "PowerShellNotebookMode");
196197

197198
// Allow some time to pass to render the Notebook
198-
await sleep(5000);
199+
await utils.sleep(5000);
199200
assert.strictEqual(
200201
vscode.notebook.activeNotebookEditor.document.uri.toString(),
201202
notebookSimpleMixedComments.toString());
@@ -225,7 +226,3 @@ function compareCells(actualCells: vscode.NotebookCellData[], expectedCells: vsc
225226
);
226227
}
227228
}
228-
229-
function sleep(ms: number) {
230-
return new Promise(resolve => setTimeout(resolve, ms));
231-
}

0 commit comments

Comments
 (0)