commit | 2491624106e434148f29ca7d9b0a2a8c42d69f78 | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Tue Jan 09 19:54:06 2024 +0900 |
committer | Remi NGUYEN VAN <reminv@google.com> | Thu Jan 11 17:59:29 2024 +0900 |
tree | 80e71409231051a2ce75e2900e661d00ccbe85ab | |
parent | 19d055514c1d4753cb3b22af0b9564bfe7f42f6e [diff] |
Fix leak of NetworkAgentWrapper HandlerThread ConnectivityServiceTest creates hundreds of NetworkAgentWrapper, without stopping their HandlerThread. This leaks a lot of threads while tests are running. Ensure the threads are stopped in ConnectivityServiceTest, and integration tests that also use NetworkAgentWrapper. Test: atest, watch adb shell ps -T [test package pid] Bug: 310659032 Change-Id: I34f367b2efe3d05e1db5eab4c9fd93ee79c1b683