- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 155 for fails (0.14 sec)
-
internal/lock/lock_test.go
"os" "testing" "time" ) // Test lock fails. func TestLockFail(t *testing.T) { f, err := os.CreateTemp("", "lock") if err != nil { t.Fatal(err) } f.Close() defer func() { err = os.Remove(f.Name()) if err != nil { t.Fatal(err) } }() _, err = LockedOpenFile(f.Name(), os.O_APPEND, 0o600) if err == nil { t.Fatal("Should fail here") } } // Tests lock directory fail.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 3.6K bytes - Viewed (0) -
cmd/s3-zip-handlers.go
if crypto.S3.IsRequested(r.Header) || crypto.S3KMS.IsRequested(r.Header) { // If SSE-S3 or SSE-KMS present -> AWS fails with undefined error writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrBadRequest), r.URL) return } zipPath, object, err := splitZipExtensionPath(object) if err != nil {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Apr 09 10:41:25 GMT 2024 - 15.8K bytes - Viewed (0) -
cmd/object-api-multipart_test.go
if err == nil { t.Fatalf("%s: Expected to fail since bucket name is invalid.", instanceType) } errMsg := "Bucket not found: minio-bucket" // operation expected to fail since the bucket on which NewMultipartUpload is being initiated doesn't exist. _, err = obj.NewMultipartUpload(context.Background(), bucket, object, opts) if err == nil {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 77.1K bytes - Viewed (0) -
internal/logger/logger.go
return } // Iterate over all logger targets to send the log entry for _, t := range systemTgts { if err := t.Send(ctx, entry); err != nil { if consoleTgt != nil { // Sending to the console never fails entry.Trace.Message = fmt.Sprintf("event(%#v) was not sent to Logger target (%#v): %#v", entry, t, err) consoleTgt.Send(ctx, entry) } } } } // Event sends a event log to log targets
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat May 04 00:17:57 GMT 2024 - 12.4K bytes - Viewed (0) -
cmd/xl-storage-format-v1.go
Checksums []ChecksumInfo `json:"checksum,omitempty"` } // Equal equates current erasure info with newer erasure info. // returns false if one of the following check fails // - erasure algorithm is different // - data blocks are different // - parity blocks are different // - block size is different // - distribution array size is different // - distribution indexes are different
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 8.2K bytes - Viewed (0) -
cmd/signature-v4_test.go
accessKey := globalActiveCred.AccessKey testCases := []struct { form http.Header expected APIErrorCode }{ // (0) It should fail if 'X-Amz-Credential' is missing. { form: http.Header{}, expected: ErrCredMalformed, }, // (1) It should fail if the access key is incorrect. { form: http.Header{
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 10.4K bytes - Viewed (1) -
internal/store/queuestore.go
func (store *QueueStore[_]) Del(key string) error { store.Lock() defer store.Unlock() return store.del(key) } // DelList - Deletes a list of entries from the store. // Returns an error even if one key fails to be deleted. func (store *QueueStore[_]) DelList(keys []string) error { store.Lock() defer store.Unlock() for _, key := range keys { if err := store.del(key); err != nil { return err } }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Mar 25 16:44:20 GMT 2024 - 7.1K bytes - Viewed (0) -
src/cmd/cgo/internal/test/gcc68255/a.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that it's OK to have C code that does nothing other than // initialize a global variable. This used to fail with gccgo. package gcc68255 /* #include "c.h" */ import "C" func F() bool { return C.v != nil
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 378 bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig_test.go
type args struct { slp string validationPattern string } tests := []struct { name string args args want *ScopeLevelPair wantErr bool }{ { name: "Fail when logs scope-level pair don't match pattern", args: args{validationPattern: validationPattern, slp: "invalid:pattern"}, wantErr: true, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 6.2K bytes - Viewed (0) -
cmd/handler-utils_test.go
"X-Minio-Meta-Appid": []string{"minio-meta"}, }, metadata: map[string]string{ "X-Amz-Meta-Appid": "amz-meta", "X-Minio-Meta-Appid": "minio-meta", }, shouldFail: false, }, // Fail if header key is not in canonicalized form { header: http.Header{ "x-amz-meta-appid": []string{"amz-meta"}, }, metadata: map[string]string{ "x-amz-meta-appid": "amz-meta", },
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 6.1K bytes - Viewed (0)