summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-12-04 13:05:21 +0000
committerNarayan Kamath <narayan@google.com>2014-12-05 10:26:13 +0000
commita951e74897193848ee88ed1c5b0a1d536f403d70 (patch)
tree23b314e6048d3cc3bbf8652fc8a0c204ef7a987a /annotations/generate_annotated_java_files.py
parent3eb44e343bfd8bcda4be8650aff310feda4d5562 (diff)
Fix failing socket tests.
Use bogus numeric addresses instead of invalid hostnames to make InetAddress.getAllByName fail before we ask a DNS server. This guards against flakiness caused by evil DNS servers. Note that from an API perspective, Socket* and SSLSocket* don't care about *why* getAllByName failed, just that it did. This change also fixes a test that was asserting that the exception we throw contains a useful error message. Again, this test was changed to use a broken numeric address. bug: 18575971 (cherry picked from commit 83b5554108e839b0c78178a029b65fddce8983f0) Change-Id: Ia1c521c05634ce798a61b060f4d3fbbc164bb9fc
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions