Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 436 for retryOn (0.18 sec)

  1. pkg/controller/serviceaccount/tokens_controller.go

    	tokens, err := e.listTokenSecrets(serviceAccount)
    	if err != nil {
    		// don't retry on cache lookup errors
    		return false, err
    	}
    	retry := false
    	errs := []error{}
    	for _, token := range tokens {
    		r, err := e.deleteToken(token.Namespace, token.Name, token.UID)
    		if err != nil {
    			errs = append(errs, err)
    		}
    		if r {
    			retry = true
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  2. testing/internal-testing/src/test/groovy/org/gradle/testing/internal/util/RetryUtilTest.groovy

    class RetryUtilTest extends Specification {
        def "exceed retry count of #retryCount throws last exception"() {
            given:
            def closure = Mock(Closure)
    
            when:
            RetryUtil.retry(retryCount, closure)
    
            then:
            def exception = thrown(Exception)
            exception.message == "Exception for retry #${retryCount - 1}"
            interaction {
                retryCount.times { retryIndex ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

          // If the problem was a CertificateException from the X509TrustManager,
          // do not retry.
          if (e.cause is CertificateException) {
            return false
          }
        }
        if (e is SSLPeerUnverifiedException) {
          // e.g. a certificate pinning error.
          return false
        }
        // An example of one we might want to retry with a different route is a problem connecting to a
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. tests/integration/pilot/multicluster_test.go

    	"istio.io/istio/pkg/test/framework/components/echo"
    	"istio.io/istio/pkg/test/framework/components/echo/check"
    	"istio.io/istio/pkg/test/util/retry"
    	"istio.io/istio/pkg/test/util/tmpl"
    )
    
    var (
    	multiclusterRetryTimeout = retry.Timeout(1 * time.Minute)
    	multiclusterRetryDelay   = retry.Delay(500 * time.Millisecond)
    )
    
    func TestClusterLocal(t *testing.T) {
    	// nolint: staticcheck
    	framework.NewTest(t).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/DefaultResourceLockCoordinationServiceTest.groovy

            lock2.doIsLockedByCurrentThread() == (!lock1Locked && !lock2Locked)
            where:
            lock1Locked | lock2Locked | expectedDisposition
            true        | true        | RETRY
            true        | false       | RETRY
            false       | true        | RETRY
            false       | false       | FINISHED
        }
    
        def "can unlock resources with unlock"() {
            def lock1 = resourceLock("lock1", lock1Locked, true)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. tests/integration/ambient/wasm_test.go

    	}
    	return nil
    }
    
    func sendTraffic(ctx framework.TestContext, checker echo.Checker, options ...retry.Option) {
    	ctx.Helper()
    	if len(GetClientInstances()) == 0 {
    		ctx.Fatal("there is no client")
    	}
    	cltInstance := GetClientInstances()[0]
    
    	defaultOptions := []retry.Option{retry.Delay(100 * time.Millisecond), retry.Timeout(200 * time.Second)}
    	httpOpts := echo.CallOptions{
    		To: GetTarget(),
    		Port: echo.Port{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 21:02:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. pkg/controller/statefulset/stateful_pod_control.go

    	return err
    }
    
    func (spc *StatefulPodControl) UpdateStatefulPod(ctx context.Context, set *apps.StatefulSet, pod *v1.Pod) error {
    	attemptedUpdate := false
    	err := retry.RetryOnConflict(retry.DefaultBackoff, func() error {
    		// assume the Pod is consistent
    		consistent := true
    		// if the Pod does not conform to its identity, update the identity and dirty the Pod
    		if !identityMatches(set, pod) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  8. tests/integration/operator/switch_cr_test.go

    					}
    				}
    				return nil
    			}, retry.Timeout(retryTimeOut), retry.Delay(retryDelay))
    
    			// test operator remove command by purge
    			scopes.Framework.Infof("checking operator remove command")
    			removeCmd = []string{
    				"operator", "remove",
    				"--skip-confirmation",
    				"--purge",
    			}
    			istioCtl.InvokeOrFail(t, removeCmd)
    
    			retry.UntilSuccessOrFail(t, func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. tests/integration/telemetry/tracing/zipkin/server_tracing_test.go

    						}
    						if !tracing.VerifyEchoTraces(t, appNsInst.Name(), cluster.Name(), traces) {
    							return errors.New("cannot find expected traces")
    						}
    						return nil
    					}, retry.Delay(3*time.Second), retry.Timeout(80*time.Second))
    				})
    			}
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. src/testing/testing_other.go

    // license that can be found in the LICENSE file.
    
    //go:build !windows
    
    package testing
    
    import "time"
    
    // isWindowsRetryable reports whether err is a Windows error code
    // that may be fixed by retrying a failed filesystem operation.
    func isWindowsRetryable(err error) bool {
    	return false
    }
    
    // highPrecisionTime represents a single point in time.
    // On all systems except Windows, using time.Time is fine.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 27 19:42:36 UTC 2024
    - 876 bytes
    - Viewed (0)
Back to top