Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 280 for fatalf (0.08 sec)

  1. internal/store/batch_test.go

    			t.Fatalf("failed to add %v; %v", i, err)
    		}
    	}
    
    	batchLen := batch.Len()
    	if batchLen != int(limit) {
    		t.Fatalf("Expected batch.Len() %v; but got %v", limit, batchLen)
    	}
    
    	keys := store.List()
    	if len(keys) > 0 {
    		t.Fatalf("Expected empty store list but got len(list) %v", len(keys))
    	}
    	if err := batch.Add(testItem); err != nil {
    		t.Fatalf("unable to add to the batch; %v", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. tests/create_test.go

    		t.Fatalf("failed to migrate, got error %v", err)
    	}
    	if err := DB.AutoMigrate(&CompositeKeyProduct{}); err != nil {
    		t.Fatalf("failed to migrate, got error %v", err)
    	}
    
    	prod := &CompositeKeyProduct{
    		LanguageCode: 56,
    		Code:         "Code56",
    		Name:         "ProductName56",
    	}
    	if err := DB.Create(&prod).Error; err != nil {
    		t.Fatalf("failed to create, got error %v", err)
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  3. cmd/object_api_suite_test.go

    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    	err = obj.MakeBucket(context.Background(), "bucket2", MakeBucketOptions{})
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    	buckets, err := obj.ListBuckets(context.Background(), BucketOptions{})
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    	if len(buckets) != 2 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 02 15:13:05 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  4. src/archive/tar/writer_test.go

    		if err := tw.WriteHeader(hdr); err != nil {
    			t.Fatalf("WriteHeader() = %v, want nil", err)
    		}
    		if err := tw.Close(); err != nil {
    			t.Fatalf("Close() = %v, want nil", err)
    		}
    		if _, err := tw.Write([]byte("Kilts")); err != ErrWriteAfterClose {
    			t.Fatalf("Write() = %v, want %v", err, ErrWriteAfterClose)
    		}
    		if err := tw.Flush(); err != ErrWriteAfterClose {
    			t.Fatalf("Flush() = %v, want %v", err, ErrWriteAfterClose)
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  5. cmd/local-locker_test.go

    		ok, err := l.RLock(ctx, arg)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !ok {
    			t.Fatal("did not get read lock")
    		}
    		// RLock twice
    		ok, err = l.RLock(ctx, arg)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !ok {
    			t.Fatal("did not get write lock")
    		}
    
    		rResources[i] = arg.Resources[0]
    	}
    	if len(l.lockMap) != len(rResources)+len(wResources) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. src/cmd/addr2line/addr2line_test.go

    	if err != nil {
    		t.Fatalf("Stat failed: %v", err)
    	}
    
    	// Debug paths are stored slash-separated, so convert to system-native.
    	srcPath = filepath.FromSlash(srcPath)
    	fi2, err := os.Stat(srcPath)
    	if err != nil {
    		t.Fatalf("Stat failed: %v", err)
    	}
    	if !os.SameFile(fi1, fi2) {
    		t.Fatalf("addr2line_test.go and %s are not same file", srcPath)
    	}
    	if want := "102"; srcLineNo != want {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 06 13:23:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. src/archive/zip/writer_test.go

    			if test.ok {
    				t.Fatalf("SetComment: unexpected error %v", err)
    			}
    			continue
    		} else {
    			if !test.ok {
    				t.Fatalf("SetComment: unexpected success, want error")
    			}
    		}
    
    		if err := w.Close(); test.ok == (err != nil) {
    			t.Fatal(err)
    		}
    
    		if w.closed != test.ok {
    			t.Fatalf("Writer.closed: got %v, want %v", w.closed, test.ok)
    		}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/pod_cache_test.go

    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	netns2, err := p.UpsertPodCache(pod, nspath2)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	if !reflect.DeepEqual(netns1, netns2) {
    		t.Fatalf("Expected the same Netns for the same uid, got %v and %v", netns1, netns2)
    	}
    
    	if counter.Load() != 2 {
    		t.Fatalf("Expected openNetns to be called twice, got %d", counter.Load())
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Aug 14 19:36:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. internal/store/queuestore_test.go

    		t.Fatalf("List() Expected: 10, got %d", len(keys))
    	}
    
    	// re-open
    	store, err = setUpQueueStore(queueDir, 10)
    	if err != nil {
    		t.Fatal("Failed to create a queue store ", err)
    	}
    	keys = store.List()
    
    	if len(keys) != 10 {
    		t.Fatalf("List() Expected: 10, got %d", len(keys))
    	}
    	if len(keys) != store.Len() {
    		t.Fatalf("List() Expected: 10, got %d", len(keys))
    	}
    
    	// Delete all
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. cmd/signature-v4-utils_test.go

    	if err != nil {
    		t.Fatalf("unable create credential, %s", err)
    	}
    
    	_, owner, s3Err = checkKeyValid(req, ucreds.AccessKey)
    	if s3Err != ErrNone {
    		t.Fatalf("Unexpected failure with %v", errorCodes.ToAPIErr(s3Err))
    	}
    
    	if owner {
    		t.Fatalf("Expected owner to be 'false', found %t", owner)
    	}
    
    	_, err = globalIAMSys.PolicyDBSet(ctx, ucreds.AccessKey, "consoleAdmin", regUser, false)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 05 21:26:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top