commit | 41296cc396f1a768adfc8f548181b6dc18e7e69f | [log] [tgz] |
---|---|---|
author | Pete Bentley <prb@google.com> | Tue Mar 21 15:17:04 2023 +0000 |
committer | Pete Bentley <prb@google.com> | Thu Mar 23 11:46:47 2023 +0000 |
tree | 8bd05783944ad8a78f8369f95d1c4806356584d6 | |
parent | 1c198903d975d03678fa842e5554fda1f9c9e3b2 [diff] |
Deflake DatagramChannelTest. About 2% of the time, the device has no non-loopback IPv4 address, e.g. due to environmental flakes. If that happens, don't pass a null through to test_bind() because it will fail, see bug for details, ust skip it for this run. Add the same logic to the IPv6 test too for consistency. Fixes: 240018849 Test: atest CtsLibcoreTestCases:libcore.java.nio.channels.DatagramChannelTest Change-Id: If2cd1dabe48b113fe4a6e4c0636e8ef0bfd15b76