| Index: tests/standalone/io/file_test.dart
|
| diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
|
| index 926d63ffc2e7f95ef1f96da0d99c7067798e94d3..de0c3b44068ef19aa00730d9ceee28efe2783afa 100644
|
| --- a/tests/standalone/io/file_test.dart
|
| +++ b/tests/standalone/io/file_test.dart
|
| @@ -108,7 +108,7 @@ class FileTest {
|
| var file2 = new File(outFilename);
|
| var output = file2.openWrite();
|
| output.add(buffer);
|
| - output.close();
|
| + output.flush().then((_) => output.close());
|
| output.done.then((_) {
|
| // Now read the contents of the file just written.
|
| List<int> buffer2 = new List<int>();
|
| @@ -147,7 +147,7 @@ class FileTest {
|
| IOSink output = file.openWrite();
|
| output.add(buffer);
|
| output.add(buffer);
|
| - output.close();
|
| + output.flush().then((_) => output.close());
|
| output.done.then((_) {
|
| Stream input = file.openRead();
|
| int position = 0;
|
|
|