Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for expectedState (0.6 sec)

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

     */
    class DaemonsStateCheckpoint {
    
        final DaemonsState expectedState
        private final Runnable[] actions
    
        DaemonsStateCheckpoint(DaemonsState expectedState, Runnable... actions) {
            this.expectedState = expectedState
            this.actions = actions
        }
    
        String toString() {
            "DaemonsStateCheckpoint{expectedState=$expectedState,actions=$actions}"
        }
    
        boolean test(DaemonsState actualState) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/internal/cache/CacheMarkingStrategyIntegrationTest.groovy

        }
    
        def "directory '#directory' is #expectedState when markingStrategy = #markingStrategy and directory created = #createDir"() {
            writeInitScript(markingStrategy)
            def dir = new File(executer.gradleUserHomeDir, directory)
            if (createDir) {
                dir.mkdirs()
            }
    
            when:
            succeeds("help")
    
            then:
            if (expectedState == "marked") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 15:10:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. subprojects/composite-builds/src/main/java/org/gradle/composite/internal/DefaultBuildController.java

            state = State.RunningTasks;
        }
    
        @Override
        public void stop() {
            workGraph.stop();
        }
    
        private void assertInState(State expectedState) {
            if (state != expectedState) {
                throw new IllegalStateException("Build is in unexpected state: " + state);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 22 20:29:05 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/testing/DaemonsEventSequence.groovy

                def timeoutMessage = "timeoutBetweenStateChangeMs of $timeoutBetweenStateChangeMs"
                def checkpointMessage = "hit at checkpoint num $currentActionNum (expecting: $nextCheckpoint.expectedState)"
                def changesMessage = "processed state changes: $pastStateChanges, queued state changes: $changeQueue"
    
                timeoutError = new AssertionError("$timeoutMessage $checkpointMessage $changesMessage")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. pkg/kubelet/winstats/network_stats_test.go

    	// Make sure that we only have data from a single net adapter.
    	expectedStats := cadvisorapi.InterfaceStats{
    		Name:      fakeAdapterName,
    		RxPackets: 1,
    		TxPackets: 1,
    		RxBytes:   1,
    		TxBytes:   1,
    		RxDropped: 1,
    		RxErrors:  1,
    		TxDropped: 1,
    		TxErrors:  1,
    	}
    	assert.Equal(t, []cadvisorapi.InterfaceStats{expectedStats}, data)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 12:08:15 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top