Skip to content

Commit ff19345

Browse files
committed
update test
1 parent 29e0832 commit ff19345

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/notebook/test/browser/contrib/notebookCellDiagnostics.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ suite('notebookCellDiagnostics', () => {
158158
testExecutionService.fireExecutionChanged(editor.textModel.uri, cell2.handle);
159159

160160
await new Promise<void>(resolve => Event.once(markerService.onMarkersUpdated)(resolve));
161-
cell.model.internalMetadata.error = undefined;
162161

162+
const clearMarkers = new Promise<void>(resolve => Event.once(markerService.onMarkersUpdated)(resolve));
163163
// on NotebookCellExecution value will make it look like its currently running
164164
testExecutionService.fireExecutionChanged(editor.textModel.uri, cell.handle, {} as INotebookCellExecution);
165165

166-
await new Promise<void>(resolve => Event.once(markerService.onMarkersUpdated)(resolve));
166+
await clearMarkers;
167167

168168
assert.strictEqual(cell?.executionErrorDiagnostic.get(), undefined);
169169
assert.strictEqual(cell2?.executionErrorDiagnostic.get()?.message, 'another bad thing happened', 'cell that was not executed should still have an error');

0 commit comments

Comments
 (0)