Skip to content

Commit

Permalink
Update testTimeout to int
Browse files Browse the repository at this point in the history
  • Loading branch information
rnakade committed Sep 16, 2024
1 parent e4661e9 commit de68bc5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ internal class FirebaseTestLabController(
cachedTestMatrixFilter: CachedTestMatrixFilter,
testTargets: List<String>? = null,
flakyTestAttempts: Int = 2,
testTimeout: String = "2700s"
testTimeout: Int = 2700
): List<TestMatrix> {
val devices = (devicePicker ?: defaultDevicePicker).pickDevices()
logger.info {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ internal class TestMatrixStore(
cachedTestMatrixFilter: CachedTestMatrixFilter = { true },
testTargets: List<String>? = null,
flakyTestAttempts: Int = 2,
testTimeout: String = "2700s"
testTimeout: Int = 2700
): TestMatrix {

val testRunId = TestRun.createId(
Expand Down Expand Up @@ -263,7 +263,7 @@ internal class TestMatrixStore(
pullScreenshots: Boolean = false,
testTargets: List<String>? = null,
flakyTestAttempts: Int = 2,
testTimeout: String = "2700s"
testTimeout: Int = 2700
): TestMatrix {
val packageName = firebaseTestLabApi.getApkDetails(
FileReference(
Expand Down Expand Up @@ -291,7 +291,7 @@ internal class TestMatrixStore(
)
}
val testSpecification = TestSpecification(
testTimeout = testTimeout,
testTimeout = "${testTimeout}s",
disableVideoRecording = false,
disablePerformanceMetrics = true, // Not a useful feature for androidx
androidInstrumentationTest = AndroidInstrumentationTest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ interface TestRunnerService {
cachedTestMatrixFilter: CachedTestMatrixFilter = { true },
testTargets: List<String>? = null,
flakyTestAttempts: Int = 2,
testTimeout: String = "2700s"
testTimeout: Int = 2700
): ScheduleTestsResponse

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ internal class TestRunnerServiceImpl internal constructor(
cachedTestMatrixFilter: CachedTestMatrixFilter,
testTargets: List<String>?,
flakyTestAttempts: Int,
testTimeout: String
testTimeout: Int
): TestRunnerService.ScheduleTestsResponse {
val testMatrices = testLabController.submitTests(
appApk = appApk ?: apkStore.getPlaceholderApk(),
Expand Down

0 comments on commit de68bc5

Please sign in to comment.