| Index: tests/standalone/src/ProcessStdoutTest.dart
|
| diff --git a/tests/standalone/src/ProcessStdoutTest.dart b/tests/standalone/src/ProcessStdoutTest.dart
|
| index 644ea4f0ba47fab8e2aee2e14ea56f842f28ca83..56abe30c9cc5bf8793e58b7e56b73144641ea851 100644
|
| --- a/tests/standalone/src/ProcessStdoutTest.dart
|
| +++ b/tests/standalone/src/ProcessStdoutTest.dart
|
| @@ -35,17 +35,15 @@ class ProcessStdoutTest {
|
| Expect.equals(data[received + i], buffer[i]);
|
| }
|
| received += buffer.length;
|
| - if (received == BUFFERSIZE) {
|
| - process.close();
|
| - }
|
| }
|
|
|
| void streamClosed() {
|
| Expect.equals(BUFFERSIZE, received);
|
| + process.close();
|
| }
|
|
|
| output.write(data);
|
| - output.end();
|
| + output.close();
|
| input.dataHandler = readData;
|
| input.closeHandler = streamClosed;
|
| }
|
| @@ -56,5 +54,5 @@ class ProcessStdoutTest {
|
| }
|
|
|
| main() {
|
| - ProcessStdoutTest.testMain();
|
| + ProcessStdoutTest.testStdout();
|
| }
|
|
|