Skip to content

Commit

Permalink
Add timeout + logging to try and debug issue
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Jan 2, 2025
1 parent 10dc5c5 commit bda1bf4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ test {
maxRetries = 3
}
}

testLogging {
// Log everything to the console
setEvents(TestLogEvent.values().toList())
}
}

// Workaround https://github.com/gradle/gradle/issues/25898
Expand All @@ -283,7 +288,7 @@ tasks.withType(Test).configureEach {
}


import org.gradle.api.internal.artifacts.configurations.ConfigurationRoles
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.gradle.util.GradleVersion
import org.w3c.dom.Document
import org.w3c.dom.Element
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@

package net.fabricmc.loom.test.integration

import java.util.concurrent.TimeUnit

import spock.lang.Specification
import spock.lang.Timeout
import spock.lang.Unroll
import spock.util.environment.RestoreSystemProperties

Expand Down Expand Up @@ -156,6 +159,7 @@ class RunConfigTest extends Specification implements GradleProjectTestTrait {
version << STANDARD_TEST_VERSIONS
}
@Timeout(value = 10, unit = TimeUnit.MINUTES)
@Unroll
// XVFB is installed on the CI for this test
def "prod client (gradle #version)"() {
Expand Down

0 comments on commit bda1bf4

Please sign in to comment.