Connectivity Tests: join handler thread after calling quitSafely

Somewhat surprisingly, HandlerThread#quitSafely is *not* a synchronous
method, so the tearDown() method still needs to wait for the thread to
join.

Test: TH
Change-Id: I0433e2100adf9299a67af5c259a518cf44f4be57
This commit is contained in:
Patrick Rohr 2023-03-14 14:42:07 -07:00
commit 98021b650b

View file

@ -79,6 +79,7 @@ class NetworkProviderTest {
@After
fun tearDown() {
mHandlerThread.quitSafely()
mHandlerThread.join()
instrumentation.getUiAutomation().dropShellPermissionIdentity()
}