Skip to content

Commit

Permalink
Testing timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rd4dev committed Jun 30, 2024
1 parent 876152d commit 0e99588
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package org.oppia.android.scripts.license

import com.google.protobuf.TextFormat
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.delay
import org.oppia.android.scripts.common.CommandExecutor
import org.oppia.android.scripts.common.CommandExecutorImpl
import org.oppia.android.scripts.common.ScriptBackgroundCoroutineDispatcher
Expand Down Expand Up @@ -51,7 +50,6 @@ class MavenDependenciesListCheck(
val pathToMavenDependenciesPb = args[2]
ScriptBackgroundCoroutineDispatcher().use { scriptBgDispatcher ->
runBlocking {
delay(300000)
checkMavenDependenciesList(
pathToRoot, pathToMavenInstallJson, pathToMavenDependenciesPb, scriptBgDispatcher
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import kotlinx.coroutines.Deferred
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.delay
import kotlinx.coroutines.withContext
import org.oppia.android.scripts.common.BazelClient
import org.oppia.android.scripts.common.CommandExecutor
Expand Down Expand Up @@ -192,6 +193,8 @@ class MavenDependenciesRetriever(
finalDependenciesList: List<MavenListDependency>
): Deferred<MavenDependencyList> {
return CoroutineScope(scriptBgDispatcher).async {
println("delaying...")
delay(400000)
val candidates = finalDependenciesList.map { MavenListDependencyPomCandidate(it) }
val undoneCandidates = candidates.filterTo(mutableSetOf()) { it.latestPomFileText == null }
var attemptCount = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class RunCoverageTest {
assertThat(outputReportText).isEqualTo(expectedResult)
}

@Test(timeout = 1000000)
@Test(timeout = 400000)
fun testRunCoverage_sampleTestsMarkdownFormat_returnsCoverageData() {
testBazelWorkspace.initEmptyWorkspace()

Expand Down

0 comments on commit 0e99588

Please sign in to comment.