Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for assertBusy (0.14 sec)

  1. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonReuseIntegrationTest.groovy

            def idleDaemon = daemons.daemons.find { ! (it.context.pid in [ canceledDaemon1.context.pid, canceledDaemon2.context.pid ]) }
            idleDaemon.assertIdle()
            canceledDaemon1.assertBusy()
            canceledDaemon2.assertBusy()
    
            when:
            client1.kill()
            client2.kill()
    
            then:
            canceledDaemon1.becomesCanceled()
            canceledDaemon2.becomesCanceled()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/ClientShutdownCrossVersionSpec.groovy

            def build = daemonExecutor().withTasks("slow").start()
            sync.waitForAllPendingCalls()
            toolingApi.daemons.daemon.assertBusy()
    
            when:
            toolingApi.close()
    
            then:
            toolingApi.daemons.daemon.assertBusy()
    
            when:
            sync.releaseAll()
            build.waitForFinish()
    
            then:
            toolingApi.daemons.daemon.stops()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/ProcessCrashHandlingIntegrationTest.groovy

            def block = server.expectAndBlock("block")
            def client = new DaemonClientFixture(executer.withArgument("--debug").withTasks("block").start())
            block.waitForAllPendingCalls()
            daemons.daemon.assertBusy()
            client.kill()
    
            then:
            daemons.daemon.becomesCanceled()
    
            and:
            daemons.daemon.stops()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/StoppingDaemonIntegrationSpec.groovy

    }
    """
    
            when:
            def blockingHandler = server.expectAndBlock(UNBLOCK)
            def build = executer.withTasks("block").start()
            blockingHandler.waitForAllPendingCalls()
            daemons.daemon.assertBusy()
            executer.withArguments("--stop").run()
            def failure = build.waitForFailure()
    
            then:
            stopsSingleDaemon()
            failure.assertHasDescription(DaemonStoppedException.MESSAGE)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonFixture.java

        DaemonFixture stops();
    
        /**
         * Asserts that this daemon is currently idle.
         */
        void assertIdle();
    
        /**
         * Asserts that this daemon is currently busy.
         */
        void assertBusy();
    
        /**
         * Asserts that this daemon is in a canceled state.
         */
        void assertCanceled();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. 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:
            def out = executer.withArguments("--status").run().normalizedOutput
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/AbstractDaemonFixture.groovy

        }
    
        DaemonFixture stops() {
            waitForState(Stopped)
            this
        }
    
        @Override
        void assertIdle() {
            assertHasState(Idle)
        }
    
        @Override
        void assertBusy() {
            assertHasState(Busy)
        }
    
        @Override
        void assertStopped() {
            assertHasState(Stopped)
        }
    
        @Override
        void assertCanceled() {
            assertHasState(Canceled)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. 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))
            }
    
            then:
            block.releaseAll()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/process/internal/CancellationIntegrationTest.groovy

            if (buildCacheEnabled) {
                executer.withBuildCacheEnabled()
            }
    
            client = new DaemonClientFixture(executer.start())
            waitForDaemonLog(START_UP_MESSAGE)
            daemons.daemon.assertBusy()
        }
    
        private void cancelBuild(String task) {
            client.kill()
            waitForDaemonLog("Build operation 'Task :$task' completed")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 04:31:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy

            }
        }
    
        void assertNumberOfRunningDaemons(number) {
            waitFor.eventually {
                assert toolingApi.daemons.daemons.size() == number
                toolingApi.daemons.daemons*.assertBusy()
            }
            // `eventually` throws a runtime exception when the condition is never met
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top