commit | d53d19e780af8009b0b904da87d6ff48196288e8 | [log] [tgz] |
---|---|---|
author | Tobias Thierer <tobiast@google.com> | Mon Jan 30 17:33:45 2017 +0000 |
committer | Tobias Thierer <tobiast@google.com> | Mon Jan 30 17:33:46 2017 +0000 |
tree | 6dcc44c8532237535cf30d5fca206b4a48b16985 | |
parent | 5ca6fa9d40b3dc707a50de770c73cacc089b13b6 [diff] |
Fix flaky libcore.java.net.FtpURLConnectionTest#testCountingProxy The test was closing the socket, potentially aborting the pending connection, potentially before the server thread got around to counting it. Calling proxy.shutdownAndGetConnectionCount() before closing the client socket ensures that the (single) request is counted. Test: Ran FtpURLConnectionTest ten times Change-Id: Id1c2d9be9571a5c1baece5a1cf16bfc215eee9c9