Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 50 for waitForAllPendingCalls (0.58 sec)

  1. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/GlobalLoggingManipulationIntegrationTest.groovy

                def builder = connection.model(GradleProject)
                builder.standardOutput = outInstance
                builder.standardError = errInstance
                builder.get(handler)
                handle.waitForAllPendingCalls()
                assert System.out.is(outInstance)
                assert System.err.is(errInstance)
                assert System.in.is(inInstance)
                handle.releaseAll()
                handler.result
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/m3/ToolingApiLoggingCrossVersionSpec.groovy

                def build = connection.newBuild()
                build.standardOutput = output
                build.forTasks("log")
                build.run(resultHandler)
                sync.waitForAllPendingCalls(resultHandler)
                ConcurrentTestUtil.poll {
                    // Need to poll, as logging output is delivered asynchronously to client
                    assert output.toString().contains(waitingMessage)
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractBasicGroupedTaskLoggingFunctionalTest.groovy

            def done = server.expectAndBlock("b-done")
            def build = executer.withArguments("--parallel").withTasks("run").start()
    
            waiting.waitForAllPendingCalls()
            waiting.release("b-waiting")
            done.waitForAllPendingCalls()
            done.releaseAll()
            waiting.releaseAll()
            result = build.waitForFailure()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonReportStatusIntegrationSpec.groovy

            def block = server.expectAndBlock("block")
            def build = executer.withTasks("block").start()
            block.waitForAllPendingCalls()
    
            daemons.daemon.assertBusy()
            executer.useOnlyRequestedJvmOpts()
            executer.withBuildJvmOpts('-Xmx128m')
            executer.run()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r61/InvalidateVirtualFileSystemAfterChangeCrossVersionSpec.groovy

                    }
                }
            """
            def block = server.expectAndBlock("block")
            def build = executer.withTasks("block", "--info").start()
            block.waitForAllPendingCalls()
            toolingApi.daemons.daemon.assertBusy()
    
            when:
            withConnection { connection ->
                connection.notifyDaemonsAboutChangedPaths(toPaths(changedPaths))
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r48/CancellationCrossVersionSpec.groovy

                def build = action.build()
                build.withCancellationToken(cancel.token())
                collectOutputs(build)
                build.run(resultHandler)
                sync.waitForAllPendingCalls(resultHandler)
                cancel.cancel()
                sync.releaseAll()
                resultHandler.finished()
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCancellationCrossVersionSpec.groovy

                def build = connection.newTestLauncher()
                build.withJvmTestClasses("Broken")
                build.withCancellationToken(cancel.token())
                build.run(resultHandler)
                sync.waitForAllPendingCalls(resultHandler)
                cancel.cancel()
                sync.releaseAll()
                resultHandler.finished()
            }
    
            then:
            buildWasCancelled(resultHandler, 'Could not execute tests using')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGFailFastIntegrationTest.groovy

            when:
            def gradleHandle = executer.withTasks('test', '--fail-fast').start()
            testExecution.waitForAllPendingCalls()
    
            then:
            testExecution.release(1)
            gradleHandle.waitForFailure()
            def result = new DefaultTestExecutionResult(testDirectory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. subprojects/build-events/src/integTest/groovy/org/gradle/build/event/BuildEventsParallelIntegrationTest.groovy

            def handleA = server.expectAndBlock("handle:a")
            server.expect("handle:b")
            server.expect("serviceClosed")
    
            def build = executer.withTasks("b").start()
    
            handleA.waitForAllPendingCalls()
            // Increase the chance of the test to detect a broken implementation that doesn't wait for events to be processed before closing the service.
            sleep(1000)
            handleA.releaseAll()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectMaxNConcurrentRequests.java

            condition.signalAll();
        }
    
    
        @Override
        public void waitForAllPendingCalls() {
            waitForAllPendingCalls(BlockingHttpServer.FailureTracker.NO_FAILURE_TRACKER);
        }
    
        @Override
        public void waitForAllPendingCalls(BlockingHttpServer.FailureTracker failureTracker) {
            lock.lock();
            try {
                previous.assertCanWait();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top