| Index: tests/standalone/io/stream_pipe_test.dart
|
| diff --git a/tests/standalone/io/stream_pipe_test.dart b/tests/standalone/io/stream_pipe_test.dart
|
| index 84dc0d064db2bb27203d2e937af0f677f15ccfb3..6f77e4650c3ae065a8da983b63b5bf39da104b53 100644
|
| --- a/tests/standalone/io/stream_pipe_test.dart
|
| +++ b/tests/standalone/io/stream_pipe_test.dart
|
| @@ -68,10 +68,8 @@ class PipeServerGame {
|
| : _receivePort = new ReceivePort(),
|
| _sendPort = null,
|
| _messages = 0 {
|
| - new PipeServer().spawn().then((SendPort port) {
|
| - _sendPort = port;
|
| - start();
|
| - });
|
| + _sendPort = spawnFunction(startPipeServer);
|
| + start();
|
| }
|
|
|
| void runTest() {
|
| @@ -147,6 +145,12 @@ class PipeServerGame {
|
| }
|
|
|
|
|
| +void startPipeServer() {
|
| + var server = new PipeServer();
|
| + port.receive(server.dispatch);
|
| +}
|
| +
|
| +
|
| // The testing server will simply pipe each connecting sockets input
|
| // stream to its output stream.
|
| class PipeServer extends TestingServer {
|
|
|