Index: tests/standalone/io/secure_server_socket_test.dart |
diff --git a/tests/standalone/io/secure_server_socket_test.dart b/tests/standalone/io/secure_server_socket_test.dart |
index da71e0d819f8ea56c9f7b51302001f4ddd01d7f1..048f9870e30214e9c9c22919f45a7274a5d7e073 100644 |
--- a/tests/standalone/io/secure_server_socket_test.dart |
+++ b/tests/standalone/io/secure_server_socket_test.dart |
@@ -167,7 +167,7 @@ void testSimpleReadWrite() { |
client.listen( |
(buffer) { |
Expect.isTrue(bytesWritten == 0); |
- data.setRange(bytesRead, buffer.length, buffer); |
+ data.setRange(bytesRead, bytesRead + buffer.length, buffer); |
bytesRead += buffer.length; |
if (bytesRead == data.length) { |
verifyTestData(data); |
@@ -189,7 +189,7 @@ void testSimpleReadWrite() { |
socket.close(); // Can also be delayed. |
socket.listen( |
(List<int> buffer) { |
- dataReceived.setRange(bytesRead, buffer.length, buffer); |
+ dataReceived.setRange(bytesRead, bytesRead + buffer.length, buffer); |
bytesRead += buffer.length; |
}, |
onDone: () { |