Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 110 for Petry (0.03 sec)

  1. pkg/test/util/retry/retry_test.go

    //  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    //  See the License for the specific language governing permissions and
    //  limitations under the License.
    
    package retry
    
    import (
    	"fmt"
    	"testing"
    	"time"
    )
    
    func TestConverge(t *testing.T) {
    	t.Run("no converge", func(t *testing.T) {
    		flipFlop := true
    		err := UntilSuccess(func() error {
    			flipFlop = !flipFlop
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/cni-watcher.go

    	// if err is returned, we couldn't find the pod
    	// if nil is returned, we found it but ambient is not enabled
    	for ambientPod, err = s.handlers.GetPodIfAmbient(name, namespace); (err != nil) && (retries < maxStaleRetries); retries++ {
    		log.Warnf("got an event for pod %s in namespace %s not found in current pod cache, retry %d of %d",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. manifests/charts/istio-cni/values.yaml

          # Note the pod will be crashlooping, so this may take a few minutes to become fully functional based on when the retry occurs.
          # This requires no RBAC privilege, but does require `securityContext.privileged/CAP_SYS_ADMIN`.
          repairPods: true
    
          initContainerName: "istio-validation"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. tests/integration/pilot/revisions/revisions_test.go

    				Run(func(t framework.TestContext, from echo.Instance, to echo.Target) {
    					retry.UntilSuccessOrFail(t, func() error {
    						result, err := from.Call(echo.CallOptions{
    							To: to,
    							Port: echo.Port{
    								Name: "http",
    							},
    							Retry: echo.Retry{
    								NoRetry: true,
    							},
    							Check: check.And(
    								check.OK(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 27 15:52:38 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  5. pkg/kube/rpc_creds_test.go

    	}
    
    	if !reflect.DeepEqual(m1, m2) {
    		t.Fatalf("Unexpectedly getting a new tokens")
    	}
    
    	var m3 map[string]string
    	retry.UntilOrFail(t,
    		func() bool {
    			m3, err = perCred.GetRequestMetadata(ctx)
    			return err == nil && !reflect.DeepEqual(m1, m3)
    		},
    		retry.Delay(refreshSeconds*time.Second),
    		retry.Timeout(expirationSeconds*time.Second),
    	)
    	if reflect.DeepEqual(m1, m3) {
    		t.Fatalf("Unexpectedly not getting a new token")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 16 06:24:33 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  6. pkg/kube/controllers/queue_test.go

    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func TestQueue(t *testing.T) {
    	handles := atomic.NewInt32(0)
    	q := NewQueue("custom", WithReconciler(func(key types.NamespacedName) error {
    		handles.Inc()
    		return nil
    	}))
    	q.Add(types.NamespacedName{Name: "something"})
    	stop := make(chan struct{})
    	go q.Run(stop)
    	retry.UntilOrFail(t, q.HasSynced, retry.Delay(time.Microsecond))
    	assert.Equal(t, handles.Load(), 1)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 15 16:18:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. 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)
  8. tests/integration/operator/uninstall_test.go

    					t.Errorf("failed to delete iopfile: %v", err)
    				}
    
    				retry.UntilSuccessOrFail(t, func() error {
    					exist, checkErr := checkIopExist(cs, iopName)
    					if checkErr != nil {
    						return checkErr
    					}
    
    					if exist {
    						return fmt.Errorf("fail to delete iop")
    					}
    
    					return nil
    				}, retry.Timeout(deletionTimeout), retry.Delay(retryDelay))
    			})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/sidecar.go

    	// has been accepted.
    	WaitForConfig(accept func(*admin.ConfigDump) (bool, error), options ...retry.Option) error
    	WaitForConfigOrFail(t test.Failer, accept func(*admin.ConfigDump) (bool, error), options ...retry.Option)
    
    	// Clusters for the Envoy instance
    	Clusters() (*admin.Clusters, error)
    	ClustersOrFail(t test.Failer) *admin.Clusters
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 03:49:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. 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)
Back to top