| Index: pkg/unittest/test/unittest_test_utils.dart
|
| diff --git a/pkg/unittest/test/unittest_test_utils.dart b/pkg/unittest/test/unittest_test_utils.dart
|
| index 7d9a922d0ec76f6158d32dc9cfd32ec4cdf2088e..92555ddbea93d7b5ccd41c8e5fde49363445df05 100644
|
| --- a/pkg/unittest/test/unittest_test_utils.dart
|
| +++ b/pkg/unittest/test/unittest_test_utils.dart
|
| @@ -78,18 +78,16 @@ makeImmediateTeardown(index, s) => () {
|
| s.write('l$index D ');
|
| };
|
|
|
| -runTestInIsolate() {
|
| - port.receive((_, sendport) {
|
| - var testConfig = new TestConfiguration(sendport);
|
| - unittestConfiguration = testConfig;
|
| - testFunction(testConfig);
|
| - });
|
| +runTestInIsolate(sendport) {
|
| + var testConfig = new TestConfiguration(sendport);
|
| + unittestConfiguration = testConfig;
|
| + testFunction(testConfig);
|
| }
|
|
|
| main() {
|
| - spawnFunction(runTestInIsolate)
|
| - .call('')
|
| - .then((String msg) {
|
| - expect(msg.trim(), equals(expected));
|
| - });
|
| + var replyPort = new ReceivePort();
|
| + Isolate.spawn(runTestInIsolate, replyPort.sendPort);
|
| + replyPort.first.then((String msg) {
|
| + expect(msg.trim(), equals(expected));
|
| + });
|
| }
|
|
|