Index: tests/standalone/io/raw_socket_test.dart |
diff --git a/tests/standalone/io/raw_socket_test.dart b/tests/standalone/io/raw_socket_test.dart |
index b6196684919390c3a6292d9cc237b3c1f6621e35..901514fbc96dc425713dd31f98b855e8e9b26f34 100644 |
--- a/tests/standalone/io/raw_socket_test.dart |
+++ b/tests/standalone/io/raw_socket_test.dart |
@@ -166,7 +166,7 @@ void testSimpleReadWrite() { |
Expect.isTrue(bytesWritten == 0); |
Expect.isTrue(client.available() > 0); |
var buffer = client.read(); |
- data.setRange(bytesRead, buffer.length, buffer); |
+ data.setRange(bytesRead, bytesRead + buffer.length, buffer); |
bytesRead += buffer.length; |
if (bytesRead == data.length) { |
verifyTestData(data); |
@@ -202,7 +202,7 @@ void testSimpleReadWrite() { |
case RawSocketEvent.READ: |
Expect.isTrue(socket.available() > 0); |
var buffer = socket.read(); |
- data.setRange(bytesRead, buffer.length, buffer); |
+ data.setRange(bytesRead, bytesRead + buffer.length, buffer); |
bytesRead += buffer.length; |
break; |
case RawSocketEvent.WRITE: |