| commit | 0d7426a12ca354f887f317e5ad6e7830995e3704 | [log] [tgz] |
|---|---|---|
| author | Chiachang Wang <chiachangwang@google.com> | Wed Oct 11 09:21:35 2023 +0000 |
| committer | Chiachang Wang <chiachangwang@google.com> | Wed Oct 11 09:21:35 2023 +0000 |
| tree | 71bce82a6540553a58e527541ff9e0b14850910a | |
| parent | c0be5355649408941382973c66d8a3cf04a010ef [diff] |
Explicitly set fallback URLConnections to deflake test The testNotifyNetwork_WithforceReevaluation() interacts with mock fallback probe URL object, but the URLConnection initialization for the mocking object is not applied to the fallback one which may cause test flaky. The getHeaderField() method should also be explicitly set. Test: atest NetworkStackTests Fix: 302851847 Change-Id: Iac25a1dfe4ed0ec24d022d90d411ad19fe0955ee