Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af5a66bf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[P2P] Fix flaky unit test"

parents b60f4680 c3329ecd
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -59,11 +59,11 @@ public class WifiP2pManagerTest {
     */
    @Test
    public void testChannelFinalize() throws Exception {
        WifiP2pManager.Channel channel = new WifiP2pManager.Channel(mContextMock,
                mTestLooper.getLooper(), null, null, mDut);

        try (WifiP2pManager.Channel channel = new WifiP2pManager.Channel(mContextMock,
                mTestLooper.getLooper(), null, null, mDut)) {
            leakageDetectorRule.assertUnreleasedResourceCount(channel, 1);
        }
    }

    /**
     * Validate that when close is called on a channel it frees up resources (i.e. don't