Network Service Discovery test: properly release resources
Bug: 32561414 Bug: 62918393 Bug: 62044295 Test: runtest frameworks-net Change-Id: If23993b5e391947ecbdc01677f0a643144794b2b
This commit is contained in:
@@ -95,6 +95,9 @@ public class NsdServiceTest {
|
||||
client2.disconnect();
|
||||
|
||||
verify(mDaemon, timeout(mTimeoutMs).times(1)).stop();
|
||||
|
||||
client1.disconnect();
|
||||
client2.disconnect();
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -131,6 +134,8 @@ public class NsdServiceTest {
|
||||
|
||||
// checks that request are cleaned
|
||||
verifyDaemonCommands("stop-register 2", "stop-discover 3", "stop-resolve 4");
|
||||
|
||||
client.disconnect();
|
||||
}
|
||||
|
||||
NsdService makeService() {
|
||||
|
||||
Reference in New Issue
Block a user