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

Commit 4cb97c5f authored by JW Wang's avatar JW Wang
Browse files

Remove Thread.sleep()

Install#commit ensures a staged session is ready before the function
returns. So we don't need to sleep to wait for disk IO to complete.

Bug: 143211397
Test: atest StagedRollbackTest
Change-Id: Ic4b53dc5aaef7a22d7d64c14ee4f77bee84c26b1
parent eae2c7cd
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -237,8 +237,6 @@ public class StagedRollbackTest {
                Integer.toString(120000), false);
        // Simulate re-installation of new NetworkStack with rollbacks enabled
        installNetworkStackPackage();
        // Sleep to allow writes to disk before reboot
        Thread.sleep(TimeUnit.SECONDS.toMillis(5));
    }

    @Test