commit | bf1a9e10eefd28bb3a989df20b4a57c745fb3670 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Wed Aug 14 16:03:05 2013 +0100 |
committer | Narayan Kamath <narayan@google.com> | Wed Aug 14 16:40:15 2013 +0100 |
tree | 814dc0fb21491bf7c5856e352c759701f7e68085 | |
parent | f85a03031c10e0bb17b2ea22cceeba9091123aae [diff] |
Fix URLConnectionTest#testConnectTimeouts. Use StuckServer correctly. When StuckServer isn't in blocking mode, its local socket address isn't 127.0.0.1. Attempting to connect to localhost will then throw a SocketException (ECONNREFUSED) instead of a SocketTimeoutException. Change-Id: I8ea1af80996894a5951e53f9c31e828bbbca3628