Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: tests/standalone/src/io/FileInputStreamTest.dart

Issue 9652001: SendPort + ReceivePort changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/src/io/DirectoryTest.dart ('k') | tests/standalone/src/io/FileTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/FileInputStreamTest.dart
diff --git a/tests/standalone/src/io/FileInputStreamTest.dart b/tests/standalone/src/io/FileInputStreamTest.dart
index ff7af97656aa45a58e55d1aab22987bfe975cb58..567690915c10e44c748c654f7e955d670140d551 100644
--- a/tests/standalone/src/io/FileInputStreamTest.dart
+++ b/tests/standalone/src/io/FileInputStreamTest.dart
@@ -65,8 +65,8 @@ void testStringInputStreamAsync(String name, int length) {
void testChunkedInputStream() {
// Force the test to timeout if it does not finish.
- ReceivePort done = new ReceivePort.singleShot();
- done.receive((message, replyTo) {});
+ ReceivePort done = new ReceivePort();
+ done.receive((message, replyTo) { done.close(); });
String fileName = getFilename("tests/standalone/src/io/readuntil_test.dat");
// File contains 19 bytes ("Hello Dart\nwassup!")
« no previous file with comments | « tests/standalone/src/io/DirectoryTest.dart ('k') | tests/standalone/src/io/FileTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698