Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,818 for error (0.17 sec)

  1. internal/rest/client_test.go

    				if errors.As(n, &netErrInterface) != tt.want {
    					t.Errorf("errors.As(n, &tt.target) != tt.want, n: %#v, target: %#v, want:%v, got: %v", n, tt.target, tt.want, !tt.want)
    				}
    			} else {
    				if errors.As(n, &tt.target) != tt.want {
    					t.Errorf("errors.As(n, &tt.target) != tt.want, n: %#v, target: %#v, want:%v, got: %v", n, tt.target, tt.want, !tt.want)
    				}
    			}
    		})
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  2. internal/ioutil/ioutil_test.go

    		b, err := io.ReadAll(r)
    		if err != nil {
    			t.Errorf("Case %d: Unexpected err %v", i, err)
    		}
    		if string(b) != testCase.expected {
    			t.Errorf("Case %d: Got wrong result: %v", i, string(b))
    		}
    	}
    }
    
    func TestSameFile(t *testing.T) {
    	f, err := os.CreateTemp("", "")
    	if err != nil {
    		t.Errorf("Error creating tmp file: %v", err)
    	}
    	tmpFile := f.Name()
    	f.Close()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 02 11:02:31 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBrokenInternalLinks.java

                writeHeader(fw);
                if (errors.isEmpty()) {
                    fw.println("All clear!");
                    return;
                }
                for (Map.Entry<File, List<Error>> e : errors.entrySet()) {
                    File file = e.getKey();
                    List<Error> errorsForFile = e.getValue();
    
                    StringBuilder sb = new StringBuilder();
                    for (Error error : errorsForFile) {
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Apr 05 07:57:56 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server.go

    	ConstructInitialSnapshot(ambientPods []*corev1.Pod) error
    	Start(ctx context.Context)
    
    	//	IsPodInMesh(ctx context.Context, pod *metav1.ObjectMeta, netNs string) (bool, error)
    	AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error
    	RemovePodFromMesh(ctx context.Context, pod *corev1.Pod) error
    	DelPodFromMesh(ctx context.Context, pod *corev1.Pod) error
    
    	Stop()
    }
    
    type Server struct {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. cmd/storage-rest-server.go

    	done(nil)
    	vresp := &VerifyFileResp{}
    	if err != nil {
    		vresp.Err = StorageErr(err.Error())
    	}
    	encoder.Encode(vresp)
    }
    
    func checkDiskFatalErrs(errs []error) error {
    	// This returns a common error if all errors are
    	// same errors, then there is no point starting
    	// the server.
    	if countErrs(errs, errUnsupportedDisk) == len(errs) {
    		return errUnsupportedDisk
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  6. internal/event/target/elasticsearch.go

    type esClient interface {
    	isAtleastV7() bool
    	createIndex(ElasticsearchArgs) error
    	ping(context.Context, ElasticsearchArgs) (bool, error)
    	stop()
    	entryExists(context.Context, string, string) (bool, error)
    	removeEntry(context.Context, string, string) error
    	updateEntry(context.Context, string, string, event.Event) error
    	addEntry(context.Context, string, event.Event) error
    }
    
    // ElasticsearchArgs - Elasticsearch target arguments.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. cmd/iam-object-store.go

    	return iamOS.saveIAMConfig(ctx, u, getUserIdentityPath(name, userType), opts...)
    }
    
    func (iamOS *IAMObjectStore) saveGroupInfo(ctx context.Context, name string, gi GroupInfo) error {
    	return iamOS.saveIAMConfig(ctx, gi, getGroupInfoPath(name))
    }
    
    func (iamOS *IAMObjectStore) deletePolicyDoc(ctx context.Context, name string) error {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  8. cmd/xl-storage-disk-id-check.go

    	startTime := time.Now()
    	trace := globalTrace.NumSubscribers(madmin.TraceStorage) > 0
    	return func(errp *error) {
    		duration := time.Since(startTime)
    
    		var err error
    		if errp != nil && *errp != nil {
    			err = *errp
    		}
    
    		atomic.AddUint64(&p.apiCalls[s], 1)
    		if IsErr(err, []error{
    			errFaultyDisk,
    			errFaultyRemoteDisk,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  9. tests/preload_test.go

    		t.Errorf("failed to query, got error %v, account: %#v", err, user4.Account)
    	}
    
    	if err := DB.Preload(clause.Associations, func(tx *gorm.DB) *gorm.DB {
    		return tx.Unscoped()
    	}).Take(&user4, "id = ?", users3[0].ID).Error; err != nil || user4.Account.ID == 0 {
    		t.Errorf("failed to query, got error %v, account: %#v", err, user4.Account)
    	}
    }
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  10. cmd/erasure-metadata-utils_test.go

    	testCases := []struct {
    		errs        []error
    		ignoredErrs []error
    		err         error
    	}{
    		// Validate if have reduced properly.
    		{[]error{
    			errDiskNotFound,
    			errDiskNotFound,
    			errDiskFull,
    		}, []error{}, errErasureReadQuorum},
    		// Validate if have no consensus.
    		{[]error{
    			errDiskFull,
    			errDiskNotFound,
    			nil, nil,
    		}, []error{}, errErasureReadQuorum},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top