Index: tests/standalone/io/list_input_stream_test.dart |
diff --git a/tests/standalone/io/list_input_stream_test.dart b/tests/standalone/io/list_input_stream_test.dart |
index 6826f1b705f9b77562f76db2e281ff39b83218b4..cebf50d9f9d4448ff169f93cef8cdcb10f558946 100644 |
--- a/tests/standalone/io/list_input_stream_test.dart |
+++ b/tests/standalone/io/list_input_stream_test.dart |
@@ -78,7 +78,7 @@ void testListInputStream2() { |
ReceivePort donePort = new ReceivePort(); |
void onData() { |
- List<int> x = new List<int>(2); |
+ List<int> x = new List<int>.fixedLength(2); |
var bytesRead = stream.readInto(x); |
Expect.equals(2, bytesRead); |
Expect.equals(data[count++], x[0]); |