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

Commit 39779eb3 authored by Winson Chiu's avatar Winson Chiu
Browse files

Increase parsing comparison test timeouts

The packageInfoEquality test case is hitting test timeout issues with
the default 60000 ms timeout.

The actual timeout reproduced during local testing was 56s, but that
seems close enough to the default 60s that performance differences
may account for the flakiness.

This uses a conservative 4 minute timeout, which accounts for potential
scaling with additional packages in newer releases.

Test: atest com.android.server.pm.parsing.AndroidPackageParsingEquivalenceTest

Change-Id: I63b2a768b69e0a4c264aa96ca3a3803c7ae9ff1d
parent 2108224a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ import com.google.common.truth.Expect

import org.junit.Rule
import org.junit.Test
import org.junit.rules.Timeout
import java.util.concurrent.TimeUnit

/**
 * Collects APKs from the device and verifies that the new parsing behavior outputs
@@ -31,6 +33,9 @@ import org.junit.Test
@Presubmit
class AndroidPackageParsingEquivalenceTest : AndroidPackageParsingTestBase() {

    @get:Rule
    val timeout = Timeout(4, TimeUnit.MINUTES)

    @get:Rule
    val expect = Expect.create()