commit | 44c55c5b639d6c1eea6eeae8414ef9df95b67bb7 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Mon Oct 31 15:27:43 2016 +0800 |
committer | Yi Kong <yikong@google.com> | Mon Oct 31 17:15:09 2016 +0800 |
tree | 4fc3617102f9e30946b3cb62683443aaf1c524c8 | |
parent | ae7c1851b7d11f297b38646ca6c0db1fb10f9056 [diff] |
Fix URLConnectionTest.test_setReadTimeoutI on host test This was failing because the test assumes that read will not complete within 1ms, while it is still possible, especially on host tests. This patch introduces a minimum time delay before the TestWebServer sends data. Bug: 32363029 Test: org.apache.harmony.luni.tests.java.net.URLConnectionTest#test_setReadTimeoutI under host tests Change-Id: Ibb4e2125f99b0544d0f09331b4ab9b0448b14035