File tree Expand file tree Collapse file tree
test_runner/src/main/kotlin/ftl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,5 +4,9 @@ import com.google.testing.model.FileReference
44import ftl.http.executeWithRetry
55
66fun getAndroidAppDetails (gcsAppPath : String ): String =
7- GcTesting .get.ApplicationDetailService ().getApkDetails(FileReference ().apply { gcsPath = gcsAppPath })
8- .executeWithRetry()?.apkDetail?.apkManifest?.packageName?.toString().orEmpty()
7+ GcTesting .get
8+ .ApplicationDetailService ()
9+ .getApkDetails(FileReference ().apply { gcsPath = gcsAppPath })
10+ .apply { requestHeaders.set(" X-Server-Timeout" , 1800 ) } // 30 min
11+ .executeWithRetry()
12+ ?.apkDetail?.apkManifest?.packageName?.toString().orEmpty()
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ fun <T> AbstractGoogleJsonClientRequest<T>.executeWithRetry(): T = withRetry { t
1919
2020private inline fun <T > withRetry (crossinline block : () -> T ): T = runBlocking {
2121 var lastError: IOException ? = null
22- repeat(4 ) {
22+ repeat(5 ) {
2323 try {
2424 return @runBlocking block()
2525 } catch (err: IOException ) {
You can’t perform that action at this time.
0 commit comments