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

Commit 270b96de authored by Michal Belusiak's avatar Michal Belusiak
Browse files

CsipSetCoordinatorServiceTest: Fix flaky tests caused by call after teardown

These two tests are fix with this patch:
- testOutgoingConnectExistingUuid
- testDump_doesNotCrash

They caused false negative on other tests

Bug: 324702156
Test: atest CsipSetCoordinatorServiceTest --rerun-until-failure
Flag: Exempt, unit test flaky fix
Change-Id: I611fec3bf6a42dfc972a10fd84dfcef94cccaa1d
parent aeaae719
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -406,6 +406,8 @@ public class CsipSetCoordinatorServiceTest {

        // Send a connect request
        Assert.assertTrue("Connect expected to succeed", mService.connect(mTestDevice));

        TestUtils.waitForIntent(TIMEOUT_MS, mIntentQueue.get(mTestDevice));
    }

    /**
@@ -662,6 +664,8 @@ public class CsipSetCoordinatorServiceTest {
        // add state machines for testing dump()
        mService.connect(mTestDevice);

        TestUtils.waitForIntent(TIMEOUT_MS, mIntentQueue.get(mTestDevice));

        mService.dump(new StringBuilder());
    }