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

Commit 327e1754 authored by Sergey Nikolaienkov's avatar Sergey Nikolaienkov
Browse files

Do not call assumeTrue(isTelevision) in @After

Only call assumeTrue(isTelevision) during test setup (@Before), and do
not call it in teardown (@After), which causes tests to fail instead of
be slipped.

Bug: 171520419
Test: atest WMShellFlickerTests
Change-Id: I12f72d46a63c497686f0da7c4763ae79bbeb7dcd
parent 0c37dac1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ abstract class TvPipTestBase(rotationName: String, rotation: Int)

    @After
    open fun tearDown() {
        Assume.assumeTrue(isTelevision)
        if (!isTelevision) return

        testApp.forceStop()