Commit ecf36ae9 authored by Pete Bentley's avatar Pete Bentley
Browse files

Relax test constraint for disconnected HttpURLConnection.

During test the MockWebServer when exactly half of the request
has been read, and the test then asserts that the amouint of data
written to the socket before receiving an exception is within 1%
of the total.  Automated testing on Taimen (see bug) sometimes
manages to write more which makes the test flake. As there is
always going to some non-determinism in IO buffering, bumping the
tolerance from 1% to 2% seems reasonable.

Bug: 126877539
Test: atest CtsLibcoreOkHttpTestCases
Change-Id: I1e11a5f31d499334e50d80505ebc0747c2a56d90
parent 47167645
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment