diff options
| author | Chalard Jean <jchalard@google.com> | 2021-12-20 22:37:02 +0900 |
|---|---|---|
| committer | Chalard Jean <jchalard@google.com> | 2021-12-20 22:40:18 +0900 |
| commit | 5b2f852fcfca3499d7e2396a9307b5c2a975a0db (patch) | |
| tree | b26579b6a4a6f5272000cdb3a2956892a5308ee9 /tests/common/java/android/net/NetworkCapabilitiesTest.java | |
| parent | 286c0e5336e97b84a2b3daf15eff9b86ae3f7349 (diff) | |
Improve error reporting in ConnDiags tests
If an exception is thrown before the callback is registered,
the finally{} block will fail with an exception explaining
the callback can't be unregistered. This masks the actual
exception.
This will ensure the original exception is printed instead.
Test: ConnectivityDiagnosticsManagerTest
Change-Id: I38aba86ff6d5d2a2a8a27c389feffd3aab788774
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions
