Skip to content

Commit

Permalink
[patch] extending the timeout of the problematic test
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfmurdock committed Oct 5, 2024
1 parent 89b994c commit d3da1f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import kotlin.test.AfterTest
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.time.Duration.Companion.minutes

interface AllContributionTestSpec : SetupWithOverrides {
var projectDir: String
Expand Down Expand Up @@ -344,7 +345,7 @@ interface AllContributionTestSpec : SetupWithOverrides {
}

@Test
fun willHandleMergeCommitsOnMergedBranchesCorrectly() = runTest {
fun willHandleMergeCommitsOnMergedBranchesCorrectly() = runTest(timeout = 5.minutes) {
setupWithDefaults()
val gitAdapter = initializeGitRepo(listOf("first"))
gitAdapter.config("user.name", "Test")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fun GitAdapter.addCommitWithMessage(message: String): CommitRef {
}

suspend fun delayLongEnoughToAffectGitDate() {
withContext(Dispatchers.Unconfined) {
withContext(Dispatchers.Default) {
delay(1.seconds)
}
}
Expand Down

0 comments on commit d3da1f3

Please sign in to comment.