Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for waitForState (0.12 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/AbstractDaemonFixture.groovy

        @Override
        long getLogLineCount() {
            return daemonLog.lines().withCloseable { lines -> lines.count() }
        }
    
        DaemonFixture becomesIdle() {
            waitForState(Idle)
            this
        }
    
        DaemonFixture stops() {
            waitForState(Stopped)
            this
        }
    
        @Override
        void assertIdle() {
            assertHasState(Idle)
        }
    
        @Override
        void assertBusy() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/LegacyDaemon.groovy

            } else {
                logFileProbe = new DaemonLogFileStateProbe(daemonLog, context, "Daemon is busy, sleeping until state changes", "Daemon is idle, sleeping until state change")
            }
        }
    
        protected void waitForState(State state) {
            def timer = Time.startCountdownTimer(STATE_CHANGE_TIMEOUT)
            def lastLogState = logFileProbe.currentState
            while (!timer.hasExpired() && lastLogState != state) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/TestableDaemon.groovy

            super(daemonLog, version)
            this.logFileProbe = new DaemonLogFileStateProbe(daemonLog, context)
            this.registryProbe = new DaemonRegistryStateProbe(registry, context)
        }
    
        protected void waitForState(State state) {
            def timer = Time.startCountdownTimer(STATE_CHANGE_TIMEOUT)
            def lastRegistryState = registryProbe.currentState
            def lastLogState = logFileProbe.currentState
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top