Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for waitForStop (0.7 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/process/internal/PathLimitationIntegrationTest.groovy

                proc.getConnection().connect()
            }
    
            public void waitForStop() {
                if (startFails) {
                    return;
                }
                try {
                    proc.waitForStop();
                    assertFalse("Expected process to fail", stopFails);
                } catch (ExecException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/CrossProcessFileLockIntegrationTest.groovy

            file("a/src/main/java/A.java") << "public class A {}"
            file("b/src/main/java/B.java") << "public class B {}"
    
            when:
            buildFile """
                def waitForStop() {
                  def sanityWaitUntil = System.currentTimeMillis() + 120000
                  println 'waiting for file...'
                  while(!file('stop.txt').exists()) {
                    Thread.sleep(300)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. pkg/kube/portforwarder.go

    	// This can return nil if the port forwarding stops gracefully.
    	ErrChan() <-chan error
    
    	// WaitForStop blocks until connection closed (e.g. control-C interrupt)
    	WaitForStop()
    }
    
    var _ PortForwarder = &forwarder{}
    
    type forwarder struct {
    	stopCh       chan struct{}
    	restConfig   *rest.Config
    	podName      string
    	ns           string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 02:12:37 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/worker/ForkingTestClassProcessorTest.groovy

            processor.processTestClass(Mock(TestClassRunInfo))
            processor.stopNow()
            processor.stop()
    
            then:
            1 * workerProcess.stopNow()
            _ * workerProcess.waitForStop() >> { throw new ExecException("waitForStop can throw") }
            notThrown(ExecException)
        }
    
        def "captures and rethrows unrecoverable exceptions thrown by the connection"() {
            def handler
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ForkingGradleHandle.java

        public ExecutionResult waitForFinish() {
            return waitForStop(false);
        }
    
        @Override
        public ExecutionFailure waitForFailure() {
            return (ExecutionFailure) waitForStop(true);
        }
    
        @Override
        public void waitForExit() {
            getExecHandle().waitForFinish().rethrowFailure();
        }
    
        private ExecutionResult waitForStop(boolean expectFailure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/process/internal/worker/DefaultMultiRequestWorkerProcessBuilder.java

                public ExecResult stop() {
                    if (requestProtocol != null) {
                        requestProtocol.stop();
                    }
                    try {
                        return workerProcess.waitForStop();
                    } finally {
                        requestProtocol = null;
                    }
                }
    
                @Override
                public void stopNow() {
                    try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:54:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/process/internal/WorkerProcessIntegrationTest.groovy

                    serverAction.execute(proc.connection)
                }
                proc.connection.connect()
            }
    
            public void waitForStop() {
                if (startFails) {
                    return
                }
                try {
                    proc.waitForStop()
                    assertFalse("Expected process to fail", stopFails)
                } catch (ExecException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  8. tensorflow/cc/training/coordinator_test.cc

    namespace tensorflow {
    namespace {
    
    using error::Code;
    
    void WaitForStopThread(Coordinator* coord, Notification* about_to_wait,
                           Notification* done) {
      about_to_wait->Notify();
      coord->WaitForStop();
      done->Notify();
    }
    
    TEST(CoordinatorTest, TestStopAndWaitOnStop) {
      Coordinator coord;
      EXPECT_EQ(coord.ShouldStop(), false);
    
      Notification about_to_wait;
      Notification done;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 23 09:10:43 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/process/internal/worker/WorkerProcess.java

        WorkerProcess start();
    
        /**
         * The connection to the worker. Call {@link ObjectConnection#connect()} to complete the connection.
         */
        ObjectConnection getConnection();
    
        ExecResult waitForStop();
    
        /**
         * Returns the result of the process, if it has exited.  If the process has not exited yet, returns {@link Optional#empty()}.
         */
        Optional<ExecResult> getExecResult();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 21:45:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. istioctl/pkg/cli/mock_client.go

    	return "localhost:3456"
    }
    
    func (m MockPortForwarder) Close() {
    }
    
    func (m MockPortForwarder) ErrChan() <-chan error {
    	return make(chan error)
    }
    
    func (m MockPortForwarder) WaitForStop() {
    }
    
    var _ kube.PortForwarder = MockPortForwarder{}
    
    type MockClient struct {
    	// Results is a map of podName to the results of the expected test on the pod
    	Results map[string][]byte
    	kube.CLIClient
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 08 08:38:19 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top