summaryrefslogtreecommitdiffstats
path: root/net/test/test_server.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-02 19:13:11 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-02 19:13:11 +0000
commitfa038d558eb0ec799555d7433e9768d6de860968 (patch)
treea63604cfbb9743321ee7037ce62f2190593329e9 /net/test/test_server.cc
parent281ecc9eda5c6272eee8f7c229f3d3151ab6b5bc (diff)
downloadchromium_src-fa038d558eb0ec799555d7433e9768d6de860968.zip
chromium_src-fa038d558eb0ec799555d7433e9768d6de860968.tar.gz
chromium_src-fa038d558eb0ec799555d7433e9768d6de860968.tar.bz2
Run tests faster.
I noticed that net_unittests was spending a lot of time doing nothing. This CL changes the timeouts so that we can startup and shutdown test servers faster. BUG=none TEST=net_unittests http://codereview.chromium.org/3057021/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54576 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/test/test_server.cc')
-rw-r--r--net/test/test_server.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/test/test_server.cc b/net/test/test_server.cc
index 683cde2..562e3e3 100644
--- a/net/test/test_server.cc
+++ b/net/test/test_server.cc
@@ -36,11 +36,12 @@
namespace {
-// Number of connection attempts for tests.
-const int kServerConnectionAttempts = 10;
+// Number of connection attempts for tests. With a timeout of 100ms, this is 60
+// seconds.
+const int kServerConnectionAttempts = 600;
// Connection timeout in milliseconds for tests.
-const int kServerConnectionTimeoutMs = 1000;
+const int kServerConnectionTimeoutMs = 100;
} // namespace