Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 436 for retryOn (0.14 sec)

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

    	t.Helper()
    	retry.UntilSuccessOrFail(t, func() error {
    		cm := configmaps.Get(name, ns)
    		if cm == nil {
    			return fmt.Errorf("not found")
    		}
    		if !reflect.DeepEqual(cm.Data, data) {
    			return fmt.Errorf("data mismatch, expected %+v got %+v", data, cm.Data)
    		}
    		return nil
    	}, retry.Timeout(time.Second*10))
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/testing/internal/util/RetryUtil.groovy

     * limitations under the License.
     */
    
    package org.gradle.testing.internal.util
    
    final class RetryUtil {
        private RetryUtil() {}
    
        static int retry(int retries = 3, int waitMsBetweenRetries = 0, Closure closure) {
            int retryCount = 0
            Throwable lastException = null
    
            while (retryCount++ < retries) {
                try {
                    closure.call()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. tests/integration/pilot/piggyback_test.go

    import (
    	"fmt"
    	"strings"
    	"testing"
    
    	"istio.io/istio/pkg/test/framework"
    	"istio.io/istio/pkg/test/framework/components/echo"
    	"istio.io/istio/pkg/test/framework/components/istioctl"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func TestPiggyback(t *testing.T) {
    	// nolint: staticcheck
    	framework.
    		NewTest(t).RequiresSingleCluster().
    		RequiresLocalControlPlane().
    		RequireIstioVersion("1.10.0").
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. tests/integration/pilot/cni_race_test.go

    				}
    			}
    		}
    		return fmt.Errorf("cannot find any pod with wanted exit code %v", constants.ValidationErrorCode)
    	}, retry.Delay(1*time.Second), retry.Timeout(80*time.Second))
    }
    
    func waitForRepairOrFail(t framework.TestContext, cluster cluster.Cluster, ns namespace.Instance) {
    	retry.UntilSuccessOrFail(t, func() error {
    		pods, err := cluster.Kube().CoreV1().Pods(ns.Name()).List(context.TODO(), metav1.ListOptions{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 16:52:52 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

        var tlsConnectDelayNanos = 0L
        var tlsConnectThrowable: Throwable? = null
        var connectTlsNextPlan: FakePlan? = null
    
        fun createRetry(): FakePlan {
          check(retry == null)
          return FakePlan(nextPlanId++)
            .also {
              retry = it
            }
        }
    
        fun createConnectTcpNextPlan(): FakePlan {
          check(connectTcpNextPlan == null)
          return FakePlan(nextPlanId++)
            .also {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. tests/integration/ambient/untaint/untaint_test.go

    	"istio.io/istio/pkg/test/framework"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func TestTaintsRemoved(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(ctx framework.TestContext) {
    			// make cni not deploy to one of the nodes
    			taintNodes(ctx)
    
    			// make sure all nodes were untainted
    			retry.UntilSuccessOrFail(t, func() error {
    				nodeC := ctx.Clusters().Default().Kube().CoreV1().Nodes()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. tests/integration/pilot/istioctl_test.go

    					return err
    				}
    				if !describeSvcAOutput.MatchString(output) {
    					return fmt.Errorf("output:\n%v\n does not match regex:\n%v", output, describeSvcAOutput)
    				}
    				return nil
    			}, retry.Timeout(time.Second*20))
    
    			retry.UntilSuccessOrFail(t, func() error {
    				podID, err := getPodID(apps.A[0])
    				if err != nil {
    					return fmt.Errorf("could not get Pod ID: %v", err)
    				}
    				args := []string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. cmd/os-reliable.go

    		if err = osMkdirAll(dirPath, mode, baseDir); err != nil {
    			// Retry only for the first retryable error.
    			if osIsNotExist(err) && i == 0 {
    				i++
    				// Determine if os.NotExist error is because of
    				// baseDir's parent being present, retry it once such
    				// that the MkdirAll is retried once for the parent
    				// of dirPath.
    				// Because it is worth a retry to skip a different
    				// baseDir which is slightly higher up the depth.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 22 17:49:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. pkg/istio-agent/xds_proxy_test.go

    	waitDisconnect := func() {
    		retry.UntilSuccessOrFail(t, func() error {
    			proxy.connectedMutex.Lock()
    			defer proxy.connectedMutex.Unlock()
    			if proxy.connected != nil {
    				return fmt.Errorf("still connected")
    			}
    			return nil
    		}, retry.Timeout(time.Second), retry.Delay(time.Millisecond))
    	}
    	expectCondition := func(expected string) {
    		t.Helper()
    		retry.UntilSuccessOrFail(t, func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 04:48:02 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  10. pkg/kube/multicluster/secretcontroller_test.go

    		for _, override := range configOverrides {
    			override(fakeRestConfig)
    		}
    		return kube.NewFakeClient(), nil
    	}
    	client.RunAndWait(stopCh)
    	assert.NoError(t, c.Run(stopCh))
    	retry.UntilOrFail(t, c.HasSynced, retry.Timeout(2*time.Second))
    	secret0 := makeSecret(secretNamespace, "s0", clusterCredential{"c0", []byte("kubeconfig0-0")})
    	secrets := clienttest.NewWriter[*v1.Secret](t, client)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top