Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 841 for fatals (0.21 sec)

  1. cmd/lock-rest-client_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	lkClient := newlockRESTClient(endpoint)
    	if lkClient.IsOnline() {
    		t.Fatalf("unexpected result. connection was online")
    	}
    
    	// Attempt all calls.
    	_, err = lkClient.RLock(context.Background(), dsync.LockArgs{})
    	if err == nil {
    		t.Fatal("Expected for Rlock to fail")
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    		t.Fatalf("want %q, ErrBufFull got %q, err=%v", "abcdefghijklmnop", string(s), err)
    	}
    	if _, err := buf.Read(p[0:3]); string(p[0:3]) != "abc" || err != nil {
    		t.Fatalf("want %q got %q, err=%v", "abc", string(p[0:3]), err)
    	}
    	if s, err := buf.Peek(1); string(s) != "d" || err != nil {
    		t.Fatalf("want %q got %q, err=%v", "d", string(s), err)
    	}
    	if s, err := buf.Peek(2); string(s) != "de" || err != nil {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. cmd/benchmark-utils_test.go

    			mustGetPutObjReader(b, bytes.NewReader(textData), int64(len(textData)), md5hex, sha256hex), ObjectOptions{})
    		if err != nil {
    			b.Fatal(err)
    		}
    		if objInfo.ETag != md5hex {
    			b.Fatalf("Write no: %d: Md5Sum mismatch during object write into the bucket: Expected %s, got %s", i+1, objInfo.ETag, md5hex)
    		}
    	}
    	// Benchmark ends here. Stop timer.
    	b.StopTimer()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  6. src/bufio/scan_test.go

    	var i int
    	for i = 0; s.Scan(); i++ {
    		if i >= len(values) {
    			t.Fatalf("got %d fields, expected %d", i+1, len(values))
    		}
    		if s.Text() != values[i] {
    			t.Errorf("%d: expected %q got %q", i, values[i], s.Text())
    		}
    	}
    	if i != len(values) {
    		t.Fatalf("got %d fields, expected %d", i, len(values))
    	}
    	if err := s.Err(); err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestEmptyTokens(t *testing.T) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  7. src/cmd/buildid/buildid.go

    	id, err := buildid.ReadFile(file)
    	if err != nil {
    		log.Fatal(err)
    	}
    	if !*wflag {
    		fmt.Printf("%s\n", id)
    		return
    	}
    
    	// Keep in sync with src/cmd/go/internal/work/buildid.go:updateBuildID
    
    	f, err := os.Open(file)
    	if err != nil {
    		log.Fatal(err)
    	}
    	matches, hash, err := buildid.FindAndHash(f, id, 0)
    	f.Close()
    	if err != nil {
    		log.Fatal(err)
    	}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Jun 21 19:58:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. internal/s3select/sql/parser_test.go

    	// s := bytes.NewBuffer([]byte("COUNT(Id)"))
    	lex, err := sqlLexer.Lex(s)
    	if err != nil {
    		t.Fatal(err)
    	}
    	tokens, err := lexer.ConsumeAll(lex)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// for i, t := range tokens {
    	// 	fmt.Printf("%d: %#v\n", i, t)
    	// }
    	if len(tokens) != 7 {
    		t.Fatalf("Expected 7 got %d", len(tokens))
    	}
    }
    
    func TestSelectWhere(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. cmd/xl-storage-free-version_test.go

    		if err != nil && !errors.Is(err, ft.expectedErr) {
    			t.Fatalf("ToFileInfo failed due to %v", err)
    		}
    		if got := fi.TierFreeVersion(); got != ft.expectedFree {
    			t.Fatalf("Expected free-version=%v but got free-version=%v", ft.expectedFree, got)
    		}
    		if ft.afterFn != nil {
    			_, err = ft.afterFn(fi)
    			if err != nil {
    				t.Fatalf("ft.afterFn failed with err %v", err)
    			}
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. internal/config/identity/openid/jwks_test.go

    		t.Fatal("Unmarshal: ", err)
    	} else if len(jk.Keys) != 3 {
    		t.Fatalf("Expected 3 keys, got %d", len(jk.Keys))
    	}
    
    	var kids []string
    	for ii, jks := range jk.Keys {
    		_, err := jks.DecodePublicKey()
    		if err != nil {
    			t.Fatalf("Failed to decode key %d: %v", ii, err)
    		}
    		kids = append(kids, jks.Kid)
    	}
    	if len(kids) != 3 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 9.8K bytes
    - Viewed (0)
Back to top