- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for BackoffDelay (0.2 sec)
-
pkg/test/util/assert/tracker.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 3.6K bytes - Viewed (0) -
tests/integration/ambient/waypoint_test.go
} } else { return fmt.Errorf("failed to delete multiple gateways: %s not cleaned up", name) } } return nil }, retry.Timeout(15*time.Second), retry.BackoffDelay(time.Millisecond*100)) // delete all waypoints in namespace, so w3 should be deleted istioctl.NewOrFail(t, t, istioctl.Config{}).InvokeOrFail(t, []string{ "waypoint", "-n", nsConfig.Name(),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/test/util/retry/retry.go
} } // Delay sets the delay between successive retry attempts. func Delay(delay time.Duration) Option { return func(cfg *config) { cfg.delay = delay cfg.delayMax = delay } } func BackoffDelay(delay time.Duration) Option { return func(cfg *config) { cfg.delay = delay // Currently, hardcode to 16 backoffs. We can make it configurable if needed cfg.delayMax = delay * 16 } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 5.6K bytes - Viewed (0) -
pkg/test/util/assert/assert.go
t.Helper() var a T // Unit tests typically need shorter default; opts can override though ro := []retry.Option{retry.Timeout(time.Second * 2), retry.BackoffDelay(time.Millisecond * 2)} ro = append(ro, retryOpts...) err := retry.UntilSuccess(func() error { a = fetch() if !cmp.Equal(a, expected, opts(expected)...) { return fmt.Errorf("not equal") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 18 17:21:50 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/test/framework/components/ambient/waypoint.go
return fmt.Errorf("cannot fetch pod: %v", err) } else if len(pods) != 0 { return fmt.Errorf("waypoint pod is not deleted") } return nil }, retry.Timeout(time.Minute), retry.BackoffDelay(time.Millisecond*100)) if waypointError != nil { t.Fatal(waypointError) } } func RemoveWaypointFromService(t framework.TestContext, ns namespace.Instance, service, waypoint string) { if service != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 6.5K bytes - Viewed (0) -
pkg/test/framework/components/echo/kube/workload.go
} if err = w.forwarder.Start(); err != nil { return fmt.Errorf("failed starting port forwarder for pod %s/%s: %v", pod.Namespace, pod.Name, err) } return nil }, retry.BackoffDelay(100*time.Millisecond), retry.Timeout(10*time.Second)); err != nil { return err } // Create a gRPC client to this workload. w.client, err = echoClient.New(w.forwarder.Address(), w.tls) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 25 19:46:28 UTC 2023 - 7.4K bytes - Viewed (0) -
pkg/test/framework/components/istio/ingress.go
defaultIngressServiceName = "istio-" + defaultIngressIstioNameLabel discoveryPort = 15012 ) var ( getAddressTimeout = retry.Timeout(3 * time.Minute) getAddressDelay = retry.BackoffDelay(500 * time.Millisecond) _ ingress.Instance = &ingressImpl{} _ io.Closer = &ingressImpl{} ) type ingressConfig struct { // Service is the kubernetes Service name for the cluster
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 29 17:13:34 UTC 2024 - 8K bytes - Viewed (0) -
pkg/test/kube/util.go
"istio.io/istio/pkg/test" "istio.io/istio/pkg/test/scopes" "istio.io/istio/pkg/test/util/retry" ) var ( defaultRetryTimeout = retry.Timeout(time.Minute * 10) defaultRetryDelay = retry.BackoffDelay(time.Millisecond * 200) ErrNoPodsFetched = fmt.Errorf("no pods fetched") ) // PodFetchFunc fetches pods from a k8s Client. type PodFetchFunc func() ([]corev1.Pod, error)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 04 22:47:52 UTC 2023 - 9.4K bytes - Viewed (0) -
tests/integration/ambient/baseline_test.go
// found (this is actually bad, but the failure condition is inverted later a bit awkward) return nil } return fmt.Errorf("no waypoints found") }, retry.Timeout(1*time.Second), retry.BackoffDelay(time.Millisecond*100)) if waypointError == nil { t.Fatal("Waypoint for non-existent tag foo created deployment!") } }) } func TestRemoveAddWaypoint(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 00:07:28 UTC 2024 - 78.4K bytes - Viewed (0) -
pkg/test/framework/components/istio/kube.go
istiodLabel = "pilot" ) var ( // the retry options for waiting for an individual component to be ready componentDeployTimeout = retry.Timeout(1 * time.Minute) componentDeployDelay = retry.BackoffDelay(200 * time.Millisecond) _ io.Closer = &istioImpl{} _ Instance = &istioImpl{} _ resource.Dumper = &istioImpl{} ) type istioImpl struct { id resource.ID
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 31.1K bytes - Viewed (0)