Index: tests/standalone/io/string_decoder_test.dart |
diff --git a/tests/standalone/io/string_decoder_test.dart b/tests/standalone/io/string_decoder_test.dart |
index 975e1ccf23b36aaaf88986c0a4ef77bbf32e956c..df808ae33f1249be49fd3cd5ad0b730143d0fbd0 100644 |
--- a/tests/standalone/io/string_decoder_test.dart |
+++ b/tests/standalone/io/string_decoder_test.dart |
@@ -8,7 +8,7 @@ import "dart:io"; |
void test() { |
// Code point U+10FFFF is the largest code point supported by Dart. |
- var controller = new StreamController(); |
+ var controller = new StreamController(sync: true); |
controller.add([0xf0, 0x90, 0x80, 0x80]); // U+10000 |
controller.add([0xf4, 0x8f, 0xbf, 0xbf]); // U+10FFFF |
controller.add([0xf4, 0x90, 0x80, 0x80]); // U+110000 |
@@ -42,7 +42,7 @@ void test() { |
void testInvalid() { |
void invalid(var bytes, var outputLength) { |
- var controller = new StreamController(); |
+ var controller = new StreamController(sync: true); |
controller.add(bytes); |
controller.close(); |
controller.stream.transform(new StringDecoder()).listen((string) { |