commit | 68454864fc346c03787aac78fc88af0d1330d84d | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Tue Mar 14 20:23:42 2023 +0000 |
committer | Patrick Rohr <prohr@google.com> | Tue Mar 14 20:24:01 2023 +0000 |
tree | aeb55df44ea4836798ea93ad1a534ec7148407ef | |
parent | 50a070d268c54214aaf2dc2e679ad787c68a0b69 [diff] |
EthernetTetheringTest: 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: I4297ba057b3d4e67c7b462b6995da637f2479d42
diff --git a/Tethering/tests/integration/base/android/net/EthernetTetheringTestBase.java b/Tethering/tests/integration/base/android/net/EthernetTetheringTestBase.java index f2cf1d0..69eb58f 100644 --- a/Tethering/tests/integration/base/android/net/EthernetTetheringTestBase.java +++ b/Tethering/tests/integration/base/android/net/EthernetTetheringTestBase.java
@@ -253,6 +253,7 @@ if (mRunTests) cleanUp(); } finally { mHandlerThread.quitSafely(); + mHandlerThread.join(); mUiAutomation.dropShellPermissionIdentity(); } }