Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 754 for retryOn (0.14 sec)

  1. pilot/pkg/serviceregistry/kube/controller/autoserviceexportcontroller_test.go

    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/kube/kclient/clienttest"
    	"istio.io/istio/pkg/kube/mcs"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    var serviceExportTimeout = retry.Timeout(time.Second * 2)
    
    func TestServiceExportController(t *testing.T) {
    	client := kube.NewFakeClient()
    
    	// Configure the environment with cluster-local hosts.
    	m := meshconfig.MeshConfig{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 06 16:02:24 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. pkg/volume/util/operationexecutor/operation_generator.go

    		// else on the system. Retry if it returns true.
    		deviceOpened, deviceOpenedErr := isDeviceOpened(deviceToDetach, hostutil)
    		if deviceOpenedErr != nil {
    			return volumetypes.NewOperationContext(nil, deviceOpenedErr, migrated)
    		}
    		// The device is still in use elsewhere. Caller will log and retry.
    		if deviceOpened {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/apiclient/idempotency.go

    		true, PatchNodeOnce(client, nodeName, patchFn, &lastError))
    	if err == nil {
    		return nil
    	}
    	return lastError
    }
    
    // GetConfigMapWithShortRetry tries to retrieve a ConfigMap using the given client, retrying for a short
    // time if it gets an unexpected error. The main usage of this function is in areas of the code that
    // fallback to a default ConfigMap value in case the one from the API cannot be quickly obtained.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/JvmTestExecutionSpec.java

    import org.gradle.internal.scan.UsedByScanPlugin;
    import org.gradle.process.JavaForkOptions;
    import org.gradle.util.Path;
    
    import java.io.File;
    import java.util.Set;
    
    @UsedByScanPlugin("test-distribution, test-retry")
    public class JvmTestExecutionSpec implements TestExecutionSpec {
        private final TestFramework testFramework;
        private final Iterable<? extends File> classpath;
        private final Iterable<? extends File> modulePath;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. pkg/test/framework/components/registryredirector/kube.go

    	}
    	body, err := json.Marshal(tagMap)
    	if err != nil {
    		return err
    	}
    
    	err = retry.UntilSuccess(func() error {
    		_, err := client.Post(fmt.Sprintf("http://%s/admin/v1/tagmap", c.forwarder.Address()), "application/json", bytes.NewBuffer(body))
    		return err
    	}, retry.Delay(100*time.Millisecond), retry.Timeout(20*time.Second))
    	if err != nil {
    		return err
    	}
    
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 00:53:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. tests/integration/telemetry/util.go

    	t.Helper()
    	err := retry.UntilSuccess(func() error {
    		got, err := prometheus.QuerySum(cluster, query)
    		t.Logf("%s: %f", query.Metric, got)
    		if err != nil {
    			return err
    		}
    		if got < want {
    			return fmt.Errorf("bad metric value: got %f, want at least %f", got, want)
    		}
    		return nil
    	}, retry.Delay(time.Second), retry.Timeout(time.Second*20))
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 16:30:22 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  7. src/runtime/cgo/libcgo_unix.h

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
     * Initialize g->stacklo.
     */
    extern void _cgo_set_stacklo(G *, uintptr *);
    
    /*
     * Call pthread_create, retrying on EAGAIN.
     */
    extern int _cgo_try_pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*);
    
    /*
     * Same as _cgo_try_pthread_create, but passing on the pthread_create function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 684 bytes
    - Viewed (0)
  8. pilot/pkg/networking/grpcgen/grpcecho_test.go

    	// ensure we can make 10 consecutive successful requests
    	retry.UntilSuccessOrFail(tt.T, func() error {
    		cw := tt.dialEcho("xds:///echo-app.default.svc.cluster.local:7070")
    		for i := 0; i < 10; i++ {
    			_, err := cw.Echo(context.Background(), &proto.EchoRequest{Message: "needle"})
    			if err != nil {
    				return err
    			}
    		}
    		return nil
    	}, retry.Timeout(5*time.Second), retry.Delay(0))
    }
    
    func TestFault(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. pkg/monitoring/monitortest/test.go

    		}
    		return nil
    	}
    }
    
    func (m *MetricsTest) Assert(name string, tags map[string]string, compare Compare, opts ...retry.Option) {
    	m.t.Helper()
    	opt := []retry.Option{retry.Timeout(time.Second * 5), retry.Message("metric not found")}
    	opt = append(opt, opts...)
    	err := retry.UntilSuccess(func() error {
    		res, err := m.reg.Gather()
    		if err != nil {
    			return err
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/CrossVersionIntegrationSpec.groovy

    import org.junit.Rule
    import spock.lang.Retry
    import spock.lang.Specification
    
    import static spock.lang.Retry.Mode.SETUP_FEATURE_CLEANUP
    
    /**
     * For running these tests against specific versions, see {@link org.gradle.integtests.fixtures.compatibility.AbstractContextualMultiVersionTestInterceptor}
     */
    @CrossVersionTest
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top