|
5 | 5 |
|
6 | 6 | import * as assert from 'assert';
|
7 | 7 | import { Emitter } from 'vs/base/common/event';
|
8 |
| -import { DisposableStore, dispose, IDisposable, markAsSingleton, MultiDisposeError, ReferenceCollection, SafeDisposable, toDisposable } from 'vs/base/common/lifecycle'; |
| 8 | +import { DisposableStore, dispose, IDisposable, markAsSingleton, ReferenceCollection, SafeDisposable, toDisposable } from 'vs/base/common/lifecycle'; |
9 | 9 | import { ensureNoDisposablesAreLeakedInTestSuite, throwIfDisposablesAreLeaked } from 'vs/base/test/common/utils';
|
10 | 10 |
|
11 | 11 | class Disposable implements IDisposable {
|
@@ -88,10 +88,10 @@ suite('Lifecycle', () => {
|
88 | 88 |
|
89 | 89 | assert.ok(disposedValues.has(1));
|
90 | 90 | assert.ok(disposedValues.has(4));
|
91 |
| - assert.ok(thrownError instanceof MultiDisposeError); |
92 |
| - assert.strictEqual((thrownError as MultiDisposeError).errors.length, 2); |
93 |
| - assert.strictEqual((thrownError as MultiDisposeError).errors[0].message, 'I am error 1'); |
94 |
| - assert.strictEqual((thrownError as MultiDisposeError).errors[1].message, 'I am error 2'); |
| 91 | + assert.ok(thrownError instanceof AggregateError); |
| 92 | + assert.strictEqual((thrownError as AggregateError).errors.length, 2); |
| 93 | + assert.strictEqual((thrownError as AggregateError).errors[0].message, 'I am error 1'); |
| 94 | + assert.strictEqual((thrownError as AggregateError).errors[1].message, 'I am error 2'); |
95 | 95 | });
|
96 | 96 |
|
97 | 97 | test('Action bar has broken accessibility #100273', function () {
|
@@ -167,10 +167,10 @@ suite('DisposableStore', () => {
|
167 | 167 |
|
168 | 168 | assert.ok(disposedValues.has(1));
|
169 | 169 | assert.ok(disposedValues.has(4));
|
170 |
| - assert.ok(thrownError instanceof MultiDisposeError); |
171 |
| - assert.strictEqual((thrownError as MultiDisposeError).errors.length, 2); |
172 |
| - assert.strictEqual((thrownError as MultiDisposeError).errors[0].message, 'I am error 1'); |
173 |
| - assert.strictEqual((thrownError as MultiDisposeError).errors[1].message, 'I am error 2'); |
| 170 | + assert.ok(thrownError instanceof AggregateError); |
| 171 | + assert.strictEqual((thrownError as AggregateError).errors.length, 2); |
| 172 | + assert.strictEqual((thrownError as AggregateError).errors[0].message, 'I am error 1'); |
| 173 | + assert.strictEqual((thrownError as AggregateError).errors[1].message, 'I am error 2'); |
174 | 174 | });
|
175 | 175 | });
|
176 | 176 |
|
|
0 commit comments