Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 800 for action1 (0.13 sec)

  1. testing/internal-testing/src/test/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpecTest.groovy

            given:
            def action1 = {
                instant.action1Start
                thread.block()
                instant.action1End
            }
            def action2 = {
                instant.action2Start
            }
    
            when:
            start {
                synchronizer.runNow(action1)
            }
            async {
                thread.blockUntil.action1Start
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/DefaultFileLockContentionHandlerTest.groovy

            client?.stop()
        }
    
        def "manages contention for multiple locks"() {
            def action1 = new AtomicBoolean()
            def action2 = new AtomicBoolean()
    
            when:
            int port = handler.reservePort()
            handler.start(10, { action1.set(true) })
            handler.start(11, { action2.set(true) })
    
            client.maybePingOwner(port, 10, "lock 1", 50000, null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/DefaultBuildControllerTest.groovy

            then:
            result.getModel() == model
        }
    
        def "runs supplied actions"() {
            def action1 = Mock(Supplier)
            def action2 = Mock(Supplier)
            def action3 = Mock(Supplier)
    
            when:
            def result = controller.run([action1, action2, action3])
    
            then:
            result == ["one", "two", "three"]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:56:30 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/async/ServiceLifecycleTest.groovy

        def "can use service when not stopped"() {
            def action = Mock(Runnable)
    
            when:
            lifecycle.use(action)
    
            then:
            1 * action.run()
            0 * _._
        }
    
        def "can use service concurrently from multiple threads"() {
            given:
            def action1 = {
                instant.action1Started
                thread.blockUntil.action2Done
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:55 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/labels_test.go

    	deletionGracePeriod := int64(10)
    	terminationGracePeriod := int64(10)
    	lifecycle := &v1.Lifecycle{
    		// Left PostStart as nil
    		PreStop: &v1.LifecycleHandler{
    			Exec: &v1.ExecAction{
    				Command: []string{"action1", "action2"},
    			},
    			HTTPGet: &v1.HTTPGetAction{
    				Path:   "path",
    				Host:   "host",
    				Port:   intstr.FromInt32(8080),
    				Scheme: "scheme",
    			},
    			TCPSocket: &v1.TCPSocketAction{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. pkg/controlplane/controller/systemnamespaces/system_namespaces_controller_test.go

    	}
    }
    
    func expectAction(t *testing.T, actions []k8stesting.Action, expected [][]string) {
    	t.Helper()
    	if len(actions) != len(expected) {
    		t.Fatalf("Expected at least %d actions, got %d", len(expected), len(actions))
    	}
    
    	for i, action := range actions {
    		verb := expected[i][0]
    		if action.GetVerb() != verb {
    			t.Errorf("Expected action %d verb to be %s, got %s", i, verb, action.GetVerb())
    		}
    		resource := expected[i][1]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/services/DefaultIsolatedProjectEvaluationListenerProvider.kt

                "afterEvaluate action cannot execute before beforeEvaluate"
            }
            executeAll(actions.afterProject, project)
        }
    
        private
        fun executeAll(actions: IsolatedProjectActionList, project: Project) {
            for (action in actions) {
                action.execute(project)
            }
        }
    
        private
        fun isolatedActions() = IsolateOwners.OwnerGradle(gradle).let { owner ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/result/DefaultResolutionResult.java

            final Set<ResolvedComponentResult> out = new LinkedHashSet<>();
            eachElement(getRoot(), Actions.doNothing(), Actions.doNothing(), out);
            return out;
        }
    
        @Override
        public void allComponents(final Action<? super ResolvedComponentResult> action) {
            eachElement(getRoot(), action, Actions.doNothing(), new HashSet<>());
        }
    
        @Override
        @SuppressWarnings("rawtypes")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:36:01 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/ParallelActionExecutionCrossVersionSpec.groovy

                }
            """
    
            expect:
            def models = withConnection {
                def action = action(new ActionRunsMultipleLevelsOfNestedActions())
                action.standardOutput = System.out
                action.standardError = System.err
                action.addArguments("--parallel")
                action.run()
            }
    
            models.size() == 3
            models.every { it.projects.size() == 5 }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. .github/workflows/scorecard.yml

          # contents: read
          # actions: read
    
        steps:
          - name: "Checkout code"
            uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
            with:
              persist-credentials: false
    
          - name: "Run analysis"
            uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
            with:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 04 17:53:21 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top