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

Unified Diff: tests/standalone/io/raw_socket_test.dart

Issue 17386002: Fix raw_socket_test off-by-one issue. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 08ed693a5f8ca6011e5487dd9a65be31d5472c3d..42d9c29be48fe75123d19bb24c469fad89ec3c6b 100644
--- a/tests/standalone/io/raw_socket_test.dart
+++ b/tests/standalone/io/raw_socket_test.dart
@@ -241,7 +241,7 @@ testPauseServerSocket() {
// sockets.
subscription.pause();
var connectCount = 0;
- for (int i = 0; i <= socketCount / 2; i++) {
+ for (int i = 0; i < socketCount / 2; i++) {
RawSocket.connect("127.0.0.1", server.port).then((_) {
if (++connectCount == socketCount / 2) {
subscription.resume();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698