- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 161 for Fatalf (0.1 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
tests/joins_test.go
var result User if err := query.First(&result, user.ID).Error; err != nil { t.Fatalf("Failed, got error: %v", err) } if result.ID != user.ID { t.Fatalf("result's id, %d, doesn't match user's id, %d", result.ID, user.ID) } // should find company if result.Company.ID != *user.CompanyID { t.Fatalf("result's id, %d, doesn't match user's company id, %d", result.Company.ID, *user.CompanyID) } }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 17 03:58:13 UTC 2024 - 15K bytes - Viewed (0) -
cmd/admin-handlers-users_test.go
IsRemove: true, }) if err != nil { c.Fatalf("group update err: %v", err) } groups, err = s.adm.ListGroups(ctx) if err != nil { c.Fatalf("group list err: %v", err) } if set.CreateStringSet(groups...).Contains(group) { c.Fatalf("created group still present!") } _, err = s.adm.GetGroupDescription(ctx, group) if err == nil { c.Fatalf("group appears to exist") } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Sep 22 00:33:43 UTC 2024 - 47.3K bytes - Viewed (0) -
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)