| Index: tests/isolate/src/Isolate2NegativeTest.dart
|
| diff --git a/tests/isolate/src/Isolate2NegativeTest.dart b/tests/isolate/src/Isolate2NegativeTest.dart
|
| index 58ebd4a443945ba2a7e75647f610eca167657a13..9e0cc9748a28c4f58d8fa19e7e4da9da55c96df7 100644
|
| --- a/tests/isolate/src/Isolate2NegativeTest.dart
|
| +++ b/tests/isolate/src/Isolate2NegativeTest.dart
|
| @@ -7,7 +7,7 @@
|
|
|
| #library('Isolate2NegativeTest');
|
| #import('dart:isolate');
|
| -#import('../../../lib/unittest/unittest.dart');
|
| +#import('TestFramework.dart');
|
|
|
| class Isolate2NegativeTest extends Isolate {
|
| Isolate2NegativeTest() : super();
|
| @@ -17,10 +17,11 @@ class Isolate2NegativeTest extends Isolate {
|
| }
|
| }
|
|
|
| +void test(TestExpectation expect) {
|
| + // We will never call 'expect.succeeded'. This test fails with a timeout.
|
| + expect.completes(new Isolate2NegativeTest().spawn());
|
| +}
|
| +
|
| main() {
|
| - test("catch exception from other isolate", () {
|
| - // Calling 'then' ensures the test framework is aware that there is a
|
| - // pending callback, so it can fail quickly.
|
| - new Isolate2NegativeTest().spawn().then(expectAsync1((a) => null));
|
| - });
|
| + runTests([test]);
|
| }
|
|
|