commit | b5bc70dc6ae970bf23ba9f1fd05f420359b7034d | [log] [tgz] |
---|---|---|
author | Benedict Wong <benedictwong@google.com> | Wed Mar 20 09:44:09 2019 -0700 |
committer | Benedict Wong <benedictwong@google.com> | Wed Apr 03 17:52:03 2019 -0700 |
tree | 04f543d64d4cee110c130a67ae3b788ba02c452b | |
parent | 07461c335b100fa7b9f7e1a12f979fc4b2327396 [diff] |
Fix flaky UdpEncapsulationSocket test This commit reduces the flakiness of the testOpenAndCloseUdpEncapsulationSocket by retrying up to three times. Unfortunately, testing port-selected socket creation is racy against other applications. This helps to handle the same race condition as done in IpSecService#bindToRandomPort Bug: 128024100 Test: 200x runs of testOpenAndCloseUdpEncapsulationSocket Change-Id: I7e036ce821019dbac6c50899bd0894e89d2fe82a