check one more async op (#248225)

This commit is contained in:
Aaron Munger
2025-05-06 08:46:21 -07:00
committed by GitHub
parent 708b6aa379
commit e65a9a3d46

View File

@@ -48,7 +48,11 @@ suite(`ipynb Clear Outputs`, () => {
];
const notebook = jupyterNotebookModelToNotebookData({ cells }, 'python');
const notebookDocument = await vscode.workspace.openNotebookDocument('jupyter-notebook', notebook);
const notebookDocumentPromise = vscode.workspace.openNotebookDocument('jupyter-notebook', notebook);
await raceTimeout(notebookDocumentPromise, 5000, () => {
throw new Error('Timeout waiting for notebook to open');
});
const notebookDocument = await notebookDocumentPromise;
await raceTimeout(vscode.window.showNotebookDocument(notebookDocument), 20000, () => {
throw new Error('Timeout waiting for notebook to open');
});