Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/3 Code Health/15573.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix failing smoke tests on CI.
6 changes: 3 additions & 3 deletions src/test/smoke/datascience.smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as vscode from 'vscode';
import { JUPYTER_EXTENSION_ID } from '../../client/common/constants';
import { openFile, setAutoSaveDelayInWorkspaceRoot, waitForCondition } from '../common';
import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';
import { noop, sleep } from '../core';
import { sleep } from '../core';
import { closeActiveWindows, initialize, initializeTest } from '../initialize';
import { verifyExtensionIsAvailable } from './common';

Expand Down Expand Up @@ -75,8 +75,8 @@ suite('Smoke Test: Datascience', () => {
if (await fs.pathExists(outputFile)) {
await fs.unlink(outputFile);
}
// Ignore exceptions (as native editor closes the document as soon as its opened);
await openFile(file).catch(noop);

await vscode.commands.executeCommand('jupyter.opennotebook', vscode.Uri.file(file));

// Wait for 15 seconds for notebook to launch.
// Unfortunately there's no way to know for sure it has completely loaded.
Expand Down