Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for shortTimeout (0.29 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

        protected Throwable failure
    
        AbstractAsyncAction(ConcurrentTestUtil owner) {
            this.owner = owner
        }
    
        protected Date shortTimeout() {
            return owner.shortTimeout()
        }
    
        protected void onFailure(Throwable throwable) {
            withLock {
                failure = throwable
                condition.signalAll()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  2. testing/soak/src/integTest/groovy/org/gradle/resolve/DependencyResolutionStressTest.groovy

        @Rule StressHttpServer server = new StressHttpServer()
        @Rule ConcurrentTestUtil concurrent = new ConcurrentTestUtil()
    
        def setup() {
            concurrent.shortTimeout = 180000
        }
    
        def cleanup() {
            new DaemonLogsAnalyzer(workspace.file("daemon")).daemons.each { it.kill() }
        }
    
        def "handles concurrent access to changing artifacts"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/util/ConcurrentSpecificationTest.groovy

    import java.util.concurrent.TimeUnit
    import org.spockframework.mock.TooManyInvocationsError
    import spock.lang.FailsWith
    
    class ConcurrentSpecificationTest extends ConcurrentSpecification {
        def setup() {
            shortTimeout = 2000
        }
    
        def "can check that an action calls a mock method asynchronously"() {
            Runnable action = Mock()
            def executed = startsAsyncAction()
    
            when:
            executed.started {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 07 08:18:50 UTC 2021
    - 10.5K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ConcurrentToolingApiIntegrationSpec.groovy

        final GradleDistribution dist = new UnderDevelopmentGradleDistribution()
        final ToolingApi toolingApi = new ToolingApi(dist, temporaryFolder)
    
        int threads = 3
    
        def setup() {
            concurrent.shortTimeout = 180000
            settingsFile.touch()
        }
    
        def "handles the same target gradle version concurrently"() {
            buildFile << "apply plugin: 'java'"
    
            when:
            threads.times {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top