Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 262 for ErrorIs (0.19 sec)

  1. cmd/iam.go

    			updatedCreateReq.Groups = normalizedGroups
    
    			updatedKeysMap[ak] = updatedCreateReq
    		}
    	}
    
    	// if there are any errors, return a collected error.
    	if len(collectedErrors) > 0 {
    		return fmt.Errorf("errors validating LDAP DN: %w", errors.Join(collectedErrors...))
    	}
    
    	for k, v := range updatedKeysMap {
    		// Replace the map values with the updated ones
    		accessKeyMap[k] = v
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  2. pkg/registry/core/pod/strategy_test.go

    		t.Run(tc.name, func(t *testing.T) {
    			errs := Strategy.Validate(genericapirequest.NewContext(), tc.pod)
    			if tc.wantErr && len(errs) == 0 {
    				t.Errorf("expected errors but got none")
    			}
    			if !tc.wantErr && len(errs) != 0 {
    				t.Errorf("unexpected errors: %v", errs.ToAggregate())
    			}
    		})
    	}
    }
    
    func TestEphemeralContainerStrategyValidateUpdate(t *testing.T) {
    
    	test := []struct {
    		name   string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  3. pkg/controller/daemon/daemon_controller.go

    					utilruntime.HandleError(err)
    				}
    			}
    		}(i)
    	}
    	deleteWait.Wait()
    
    	// collect errors if any for proper reporting/retry logic in the controller
    	errors := []error{}
    	close(errCh)
    	for err := range errCh {
    		errors = append(errors, err)
    	}
    	return utilerrors.NewAggregate(errors)
    }
    
    func storeDaemonSetStatus(
    	ctx context.Context,
    	dsClient unversionedapps.DaemonSetInterface,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/init.go

    func ReadWorkFile(path string) (*modfile.WorkFile, error) {
    	path = base.ShortPath(path) // use short path in any errors
    	workData, err := fsys.ReadFile(path)
    	if err != nil {
    		return nil, fmt.Errorf("reading go.work: %w", err)
    	}
    
    	f, err := modfile.ParseWork(path, workData, nil)
    	if err != nil {
    		return nil, fmt.Errorf("errors parsing go.work:\n%w", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2.go

    			}
    			want += int64(len(tmp) - len(after))
    
    			return buf[:want], err
    
    		default:
    			return nil, errors.New("unknown minor metadata version")
    		}
    	default:
    		return nil, errors.New("unknown major metadata version")
    	}
    }
    
    func decodeXLHeaders(buf []byte) (versions int, headerV, metaV uint8, b []byte, err error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  6. src/testing/testing.go

    	if err := os.Mkdir(dir, 0777); err != nil {
    		c.Fatalf("TempDir: %v", err)
    	}
    	return dir
    }
    
    // removeAll is like os.RemoveAll, but retries Windows "Access is denied."
    // errors up to an arbitrary timeout.
    //
    // Those errors have been known to occur spuriously on at least the
    // windows-amd64-2012 builder (https://go.dev/issue/50051), and can only occur
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  7. src/net/http/client_test.go

    				t.Fatalf("url.Timeout() = %t, want %t", g, w)
    			}
    			if g, w := ue.Err, wantErr; g != w {
    				t.Errorf("url.Error.Err = %v; want %v", g, w)
    			}
    			if got := errors.Is(err, context.DeadlineExceeded); got != wantIsTimeout {
    				t.Errorf("errors.Is(err, context.DeadlineExceeded) = %v, want %v", got, wantIsTimeout)
    			}
    		})
    	}
    }
    
    type nilBodyRoundTripper struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  8. src/net/http/fs_test.go

    				t.Fatal("err == nil; want != nil")
    			}
    			if !errors.Is(err, fs.ErrNotExist) {
    				t.Errorf("err = %v; errors.Is(err, fs.ErrNotExist) = %v; want true", err,
    					errors.Is(err, fs.ErrNotExist))
    			}
    
    			_, err = fsys.Open("/index.html/not-a-dir/not-a-file")
    			if err == nil {
    				t.Fatal("err == nil; want != nil")
    			}
    			if !errors.Is(err, fs.ErrNotExist) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  9. cmd/bucket-handlers.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"crypto/md5"
    	"encoding/base64"
    	"encoding/hex"
    	"encoding/json"
    	"encoding/xml"
    	"errors"
    	"fmt"
    	"io"
    	"mime/multipart"
    	"net/http"
    	"net/textproto"
    	"net/url"
    	"path"
    	"runtime"
    	"sort"
    	"strconv"
    	"strings"
    	"sync"
    
    	"github.com/google/uuid"
    	"github.com/minio/mux"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    	if count != 3 {
    		t.Fatalf("did not visit all infos: %d", count)
    	}
    	agg, ok := err.(utilerrors.Aggregate)
    	if !ok {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if len(agg.Errors()) != 2 || agg.Errors()[0] != testErr || agg.Errors()[1] != testErr {
    		t.Fatalf("unexpected error: %v", err)
    	}
    }
    
    func TestSingleItemImpliedObject(t *testing.T) {
    	obj, err := newDefaultBuilder().
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
Back to top