Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,465 for perror (0.09 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    	if err != nil || i != 1 {
    		t.Errorf("unexpected error: %v", err)
    	}
    
    	// returns immediately on error
    	testErr := fmt.Errorf("some other error")
    	err = ExponentialBackoff(opts, func() (bool, error) {
    		return false, testErr
    	})
    	if err != testErr {
    		t.Errorf("unexpected error: %v", err)
    	}
    
    	// invoked multiple times
    	i = 1
    	err = ExponentialBackoff(opts, func() (bool, error) {
    		if i < opts.Steps {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  2. src/internal/syscall/windows/syscall_windows.go

    //sys	GetComputerNameEx(nameformat uint32, buf *uint16, n *uint32) (err error) = GetComputerNameExW
    //sys	MoveFileEx(from *uint16, to *uint16, flags uint32) (err error) = MoveFileExW
    //sys	GetModuleFileName(module syscall.Handle, fn *uint16, len uint32) (n uint32, err error) = kernel32.GetModuleFileNameW
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. src/encoding/base32/base32_test.go

    // supplied reader returns an error.
    func TestIssue20044(t *testing.T) {
    	badErr := errors.New("bad reader error")
    	testCases := []struct {
    		r       badReader
    		res     string
    		err     error
    		dbuflen int
    	}{
    		// Check valid input data accompanied by an error is processed and the error is propagated.
    		{r: badReader{data: []byte("MY======"), errs: []error{badErr}},
    			res: "f", err: badErr},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 26K bytes
    - Viewed (0)
  4. cmd/object_api_suite_test.go

    	if err == nil {
    		t.Fatal("Expected error but found nil")
    	}
    	if err.Error() != "Bucket not found: bucket1" {
    		t.Errorf("%s: Expected the error msg to be `%s`, but instead found `%s`", instanceType, "Bucket not found: bucket1", err.Error())
    	}
    }
    
    // Wrapper for calling testBucketRecreateFails for both Erasure and FS.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  5. src/sync/atomic/doc.go

    func LoadUint32(addr *uint32) (val uint32)
    
    // LoadUint64 atomically loads *addr.
    // Consider using the more ergonomic and less error-prone [Uint64.Load] instead
    // (particularly if you target 32-bit platforms; see the bugs section).
    func LoadUint64(addr *uint64) (val uint64)
    
    // LoadUintptr atomically loads *addr.
    // Consider using the more ergonomic and less error-prone [Uintptr.Load] instead.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/profile/encode.go

    		x := new(ValueType)
    		pp := m.(*Profile)
    		pp.PeriodType = x
    		return decodeMessage(b, x)
    	},
    	// int64 period = 12
    	func(b *buffer, m message) error { return decodeInt64(b, &m.(*Profile).Period) },
    	// repeated int64 comment = 13
    	func(b *buffer, m message) error { return decodeInt64s(b, &m.(*Profile).commentX) },
    	// int64 defaultSampleType = 14
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionFailureTest.groovy

            error(e).startsWith(error('''
                Did not find expected text in build output.
                Expected: broken
    
                Build output:
                =======
    
                Some message
                '''))
    
            when:
            failure.assertHasErrorOutput("broken")
    
            then:
            def e2 = thrown(AssertionError)
            error(e2).startsWith(error('''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. src/os/file.go

    // functionality. The design is Unix-like, although the error handling is
    // Go-like; failing calls return values of type error rather than error numbers.
    // Often, more information is available within the error. For example,
    // if a call that takes a file name fails, such as [Open] or [Stat], the error
    // will include the failing file name when printed and will be of type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  9. pkg/kubelet/container/testing/fake_runtime.go

    	KilledContainers  []string
    	RuntimeStatus     *kubecontainer.RuntimeStatus
    	VersionInfo       string
    	APIVersionInfo    string
    	RuntimeType       string
    	Err               error
    	InspectErr        error
    	StatusErr         error
    	// If BlockImagePulls is true, then all PullImage() calls will be blocked until
    	// UnblockImagePulls() is called. This is used to simulate image pull latency
    	// from container runtime.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/apiclient/wait.go

    	var (
    		lastError       error
    		start           = time.Now()
    		healthzEndpoint = fmt.Sprintf("http://%s:%d/healthz", healthzAddress, healthzPort)
    	)
    
    	fmt.Printf("[kubelet-check] Waiting for a healthy kubelet. This can take up to %v\n", w.timeout)
    
    	formatError := func(cause string) error {
    		return errors.Errorf("The HTTP call equal to 'curl -sSL %s' returned %s\n",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top