Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for failed (0.21 sec)

  1. tests/query_test.go

    	var err error
    	err = DB.Create(&q1).Error
    	if err != nil {
    		t.Errorf("failed to create:%v", err)
    	}
    
    	err = DB.Create(&q2).Error
    	if err != nil {
    		t.Errorf("failed to create:%v", err)
    	}
    
    	var qs []QueryResetNullValue
    	err = DB.Joins("Item1").Joins("Item2").Find(&qs).Error
    	if err != nil {
    		t.Errorf("failed to find:%v", err)
    	}
    
    	if len(qs) != 2 {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  2. cmd/batch-handlers.go

    		ri.Complete = ri.ObjectsFailed == 0
    		ri.Failed = ri.ObjectsFailed > 0
    
    		globalBatchJobsMetrics.save(job.ID, ri)
    		// persist in-memory state to disk.
    		batchLogIf(ctx, ri.updateAfter(ctx, api, 0, job))
    
    		if err := r.Notify(ctx, ri); err != nil {
    			batchLogIf(ctx, fmt.Errorf("unable to notify %v", err))
    		}
    
    		cancel()
    		if ri.Failed {
    			ri.ObjectsFailed = 0
    			ri.Bucket = ""
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 14:11:38 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    		return
    	}
    	file := r.Form.Get("file")
    	if len(file) == 0 {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL)
    		return
    	}
    
    	file = filepath.ToSlash(file)
    	// Reject attempts to traverse parent or absolute paths.
    	if hasBadPathComponent(volume) || hasBadPathComponent(file) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  4. cmd/xl-storage_test.go

    		t.Fatalf("Unable to create a file \"as-file\", %s", err)
    	}
    	if err = xlStorage.AppendFile(context.Background(), "exists", "as-file-parent/xl.meta", xlMeta); err != nil {
    		t.Fatalf("Unable to create a file \"as-file-parent\", %s", err)
    	}
    	if err = xlStorage.MakeVol(context.Background(), "exists/as-file/"+fi.DataDir); err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  5. istioctl/pkg/describe/describe.go

    	meshCfg, err := getMeshConfig(kubeClient, istioNamespace)
    	if err != nil {
    		return fmt.Errorf("failed to fetch mesh config: %v", err)
    	}
    
    	workloadPAList, err := configClient.SecurityV1beta1().PeerAuthentications(workloadNamespace).List(context.Background(), metav1.ListOptions{})
    	if err != nil {
    		return fmt.Errorf("failed to fetch workload namespace PeerAuthentication: %v", err)
    	}
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  6. src/archive/zip/reader_test.go

    	}
    
    	// test read of each file
    	for i, ft := range zt.File {
    		readTestFile(t, zt, ft, z.File[i], raw)
    	}
    	if t.Failed() {
    		return
    	}
    
    	// test simultaneous reads
    	n := 0
    	done := make(chan bool)
    	for i := 0; i < 5; i++ {
    		for j, ft := range zt.File {
    			go func(j int, ft ZipTestFile) {
    				readTestFile(t, zt, ft, z.File[j], raw)
    				done <- true
    			}(j, ft)
    			n++
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  7. cmd/test-utils_test.go

    		t.Errorf("Test expected to return nil, failed instead got a non-nil value %s", toObjectErr(nil))
    	}
    	if toStorageErr(nil) != nil {
    		t.Errorf("Test expected to return nil, failed instead got a non-nil value %s", toStorageErr(nil))
    	}
    	ctx := context.Background()
    	if toAPIError(ctx, nil) != noError {
    		t.Errorf("Test expected error code to be ErrNone, failed instead provided %s", toAPIError(ctx, nil).Code)
    	}
    }
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  8. cmd/bucket-handlers.go

    			continue
    		}
    
    		// In accordance with https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html
    		// The file or text content.
    		// The file or text content must be the last field in the form.
    		// You cannot upload more than one file at a time.
    		reader = part
    		// we have found the File part of the request we are done processing multipart-form
    		break
    	}
    
    	if keyName, ok := formValues["Key"]; !ok {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2.go

    			}
    		default:
    			return errors.New("unknown minor metadata version")
    		}
    	default:
    		return errors.New("unknown major metadata version")
    	}
    	if allMeta == nil {
    		return errFileCorrupt
    	}
    	// bts will shrink as we decode.
    	bts := allMeta
    	var field []byte
    	var zb0001 uint32
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  10. src/bufio/bufio_test.go

    	data := "hello world"
    	b := NewReader(strings.NewReader(data))
    	if s := readBytes(b); s != "hello world" {
    		t.Errorf("simple hello world test failed: got %q", s)
    	}
    
    	b = NewReader(newRot13Reader(strings.NewReader(data)))
    	if s := readBytes(b); s != "uryyb jbeyq" {
    		t.Errorf("rot13 hello world test failed: got %q", s)
    	}
    }
    
    type readMaker struct {
    	name string
    	fn   func(io.Reader) io.Reader
    }
    
    var readMakers = []readMaker{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
Back to top