summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net
diff options
context:
space:
mode:
authorPatrick Rohr <prohr@google.com>2022-04-04 14:43:03 +0200
committerPatrick Rohr <prohr@google.com>2022-04-04 14:59:42 +0200
commitfd87fb65fb2dbaa518ac00b0f44a9f9057459f96 (patch)
tree860aa90d2c34e733f097b6b7f2a134a31d964ff4 /tests/common/java/android/net
parent50c470e3088c684997950d03baa4180d0ca4af71 (diff)
Use completeExceptionally instead of second future
The onError callback can use the same future as the onResult callback by calling completeExceptionally. This change is also removing the test for a specific exception message. Testing for a specific exception message would mean that tests break if we ever were to update them. If we decide that there is value to distinguish between different types of EthernetNetworkManagementException we should probably subclass it internally. Test: atest EthernetNetworkFactoryTest Change-Id: Ib6f8cf79fc26e0f856c880cbe505b101f12aa187
Diffstat (limited to 'tests/common/java/android/net')
0 files changed, 0 insertions, 0 deletions