Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 237 for errchk (0.11 sec)

  1. pkg/registry/apps/deployment/storage/storage_test.go

    	testCases := map[string]struct {
    		rollback apps.DeploymentRollback
    		errOK    func(error) bool
    	}{
    		"normal": {
    			rollback: apps.DeploymentRollback{
    				Name:               name,
    				UpdatedAnnotations: map[string]string{},
    				RollbackTo:         apps.RollbackConfig{Revision: 1},
    			},
    			errOK: func(err error) bool { return err == nil },
    		},
    		"noAnnotation": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:45 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    				if err != nil {
    					errCh <- fmt.Errorf("incorrect resource version: %v", err)
    					return
    				}
    				if prevRV != -1 && prevRV+1 != rv {
    					errCh <- fmt.Errorf("unexpected event received, prevRV=%d, rv=%d", prevRV, rv)
    					return
    				}
    				prevRV = rv
    			}
    
    		}()
    	}
    	wg.Wait()
    	close(errCh)
    
    	for err := range errCh {
    		t.Error(err)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  3. pkg/controller/daemon/daemon_controller.go

    					errCh <- err
    					utilruntime.HandleError(err)
    				}
    			}
    		}(i)
    	}
    	deleteWait.Wait()
    
    	// collect errors if any for proper reporting/retry logic in the controller
    	errors := []error{}
    	close(errCh)
    	for err := range errCh {
    		errors = append(errors, err)
    	}
    	return utilerrors.NewAggregate(errors)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  4. pkg/test/framework/components/echo/kube/workload.go

    // watchPortForward wait watch the health of a port-forward connection. If a disconnect is detected, the workload is reconnected.
    // TODO: this isn't structured very nicely. We have a port forwarder that can notify us when it fails (ErrChan) and we are competing with
    // the pod informer which is sequenced via mutex. This could probably be cleaned up to be more event driven, but would require larger refactoring.
    func watchPortForward(cfg workloadConfig, w *workload) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 19:46:28 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. pkg/controller/garbagecollector/garbagecollector.go

    			if err != nil && !errors.IsNotFound(err) {
    				errCh <- fmt.Errorf("orphaning %s failed, %v", dependent.identity, err)
    			}
    		}(dependents[i])
    	}
    	wg.Wait()
    	close(errCh)
    
    	var errorsSlice []error
    	for e := range errCh {
    		errorsSlice = append(errorsSlice, e)
    	}
    
    	if len(errorsSlice) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  6. istioctl/pkg/cli/mock_client.go

    func (m MockPortForwarder) Start() error {
    	return nil
    }
    
    func (m MockPortForwarder) Address() string {
    	return "localhost:3456"
    }
    
    func (m MockPortForwarder) Close() {
    }
    
    func (m MockPortForwarder) ErrChan() <-chan error {
    	return make(chan error)
    }
    
    func (m MockPortForwarder) WaitForStop() {
    }
    
    var _ kube.PortForwarder = MockPortForwarder{}
    
    type MockClient struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 08 08:38:19 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/debug_test.go

    		buffer := make([]byte, 4096)
    		for {
    			n, err := s.stderr.Read(buffer)
    			if n > 0 {
    				s.errChan <- string(buffer[0:n])
    			}
    			if err == io.EOF || n == 0 {
    				break
    			}
    			if err != nil {
    				fmt.Printf("Saw an error forwarding stderr")
    				break
    			}
    		}
    		close(s.errChan)
    		s.stderr.Close()
    	}()
    	return s
    }
    
    func (s *ioState) hist() *nextHist {
    	return s.history
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  8. misc/ios/go_ios_exec.go

    			} else {
    				errChan <- fmt.Errorf("idevicedebugserverproxy: %v", err)
    			}
    		}
    		errChan <- nil
    	}()
    	closer := func() {
    		cmd.Process.Kill()
    		<-errChan
    	}
    	// Dial localhost:3222 to ensure the proxy is ready.
    	delay := time.Second / 4
    	for attempt := 0; attempt < 5; attempt++ {
    		conn, err := net.DialTimeout("tcp", "localhost:3222", 5*time.Second)
    		if err == nil {
    			conn.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 23.4K bytes
    - Viewed (0)
  9. src/syscall/tables_wasip1.go

    	EPIPE           Errno = 64
    	EPROTO          Errno = 65
    	EPROTONOSUPPORT Errno = 66
    	EPROTOTYPE      Errno = 67
    	ERANGE          Errno = 68
    	EROFS           Errno = 69
    	ESPIPE          Errno = 70
    	ESRCH           Errno = 71
    	ESTALE          Errno = 72
    	ETIMEDOUT       Errno = 73
    	ETXTBSY         Errno = 74
    	EXDEV           Errno = 75
    	ENOTCAPABLE     Errno = 76
    	// needed by src/net/error_unix_test.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 20:58:35 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. pkg/scheduler/schedule_one_test.go

    	}
    	scheduler, bindingChan, errChan := setupTestSchedulerWithOnePodOnNode(ctx, t, queuedPodStore, scache, pod, &node, fns...)
    
    	waitPodExpireChan := make(chan struct{})
    	timeout := make(chan struct{})
    	go func() {
    		for {
    			select {
    			case <-timeout:
    				return
    			default:
    			}
    			pods, err := scache.PodCount()
    			if err != nil {
    				errChan <- fmt.Errorf("cache.List failed: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top