Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for expectConcurrent (0.17 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

                }
            });
        }
    
        /**
         * Expects the given requests to be made concurrently. Blocks each request until they have all been received then releases them all.
         */
        public void expectConcurrent(String... expectedRequests) {
            List<ResourceExpectation> expectations = new ArrayList<>();
            for (String request : expectedRequests) {
                expectations.add(doGet(request));
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonReuseIntegrationTest.groovy

                    doLast {
                        new URL("${getUrl('started')}\${buildNum.get()}").text
                    }
                }
            """
    
            when:
            server.expectConcurrent("started1", "started2")
            def gradle1 = executer.withTasks("block").withArguments("--debug", "-PbuildNum=1").start()
            def gradle2 = executer.withTasks("block").withArguments("--debug", "-PbuildNum=2").start()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/MissingTaskDependenciesIntegrationTest.groovy

            //   - The snapshotting of the zip task finishes before the snapshotting of the outputs of the compile task
            server.expectConcurrent("zipFileSnapshottingStarted", "compileAction1")
            server.expectConcurrent("zipFileSnapshottingFinished", "compileAction2")
            when:
            run "srcZip", "compile", "--parallel"
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 08:14:44 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/ProducerTaskCommandLineOrderIntegrationTest.groovy

            def cleanBar = bar.task('cleanBar').destroys('build/bar').destroys('build/pkg-src')
            def clean = rootBuild.task('clean').dependsOn(cleanFoo).dependsOn(cleanBar)
    
            server.start()
            server.expectConcurrent(generateFoo.path, packageBarSources.path)
    
            writeAllFiles()
    
            expect:
            2.times {
                args '--parallel', '--max-workers=2'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ConcurrentArchiveIntegrationTest.groovy

                            assert fileDetails.file.text == contents
                        }
                    }
                }
    
                update()
                verify()
            """
    
            server.expectConcurrent('wait', 'wait')
    
            when: "two processes are started, which will edit the settings file at the same time"
            def handle1 = executer.withTasks('tasks').start()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy

        }
    
        def "starts a new worker daemon when there are no idle compatible worker daemons available"() {
            blockingServer.start()
            blockingServer.expectConcurrent("runInDaemon", "startNewDaemon")
    
            fixture.withWorkActionClassInBuildSrc()
            fixture.withBlockingWorkActionClassInBuildSrc("http://localhost:${blockingServer.port}")
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top