Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,402 for expErr (0.12 sec)

  1. pkg/kubelet/cm/cpumanager/policy_static_test.go

    		containerName:   spt.containerName,
    		stAssignments:   spt.stAssignments.Clone(),
    		stDefaultCPUSet: spt.stDefaultCPUSet.Clone(),
    		pod:             spt.pod, // accessed in read-only
    		expErr:          spt.expErr,
    		expCPUAlloc:     spt.expCPUAlloc,
    		expCSet:         spt.expCSet.Clone(),
    	}
    }
    
    func TestStaticPolicyName(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  2. operator/pkg/util/k8s_test.go

    		major        string
    		minor        string
    		expErr       bool
    		operatorYaml string
    	}{
    		{
    			major:        "1",
    			minor:        "16",
    			expErr:       false,
    			operatorYaml: o1,
    		},
    		{
    			major:        "1",
    			minor:        "22",
    			expErr:       true,
    			operatorYaml: o1,
    		},
    		{
    			major:        "1",
    			minor:        "23",
    			expErr:       false,
    			operatorYaml: o2,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/mergelocals_test.go

    			},
    			experr: true,
    		},
    	}
    
    	for k, testcase := range testcases {
    		mls, err := liveness.MakeMergeLocalsState(testcase.partition, testcase.vars)
    		t.Logf("tc %d err is %v\n", k, err)
    		if testcase.experr && err == nil {
    			t.Fatalf("tc:%d missing error mls %v", k, mls)
    		} else if !testcase.experr && err != nil {
    			t.Fatalf("tc:%d unexpected error mls %v", k, err)
    		}
    		if mls != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:43:53 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cpumanager/cpu_assignment_test.go

    			result, err := takeByTopologyNUMADistributed(tc.topo, tc.availableCPUs, tc.numCPUs, tc.cpuGroupSize)
    			if err != nil {
    				if tc.expErr == "" {
    					t.Errorf("unexpected error [%v]", err)
    				}
    				if tc.expErr != "" && err.Error() != tc.expErr {
    					t.Errorf("expected error to be [%v] but it was [%v]", tc.expErr, err)
    				}
    				return
    			}
    			if !result.Equals(tc.expResult) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 17:31:37 UTC 2023
    - 22.7K bytes
    - Viewed (0)
  5. cmd/bucket-replication-utils_test.go

    	dsc    string
    	expDsc ReplicateDecision
    	expErr error
    }{
    	{ // 1.
    		name: "empty string",
    		dsc:  "",
    		expDsc: ReplicateDecision{
    			targetsMap: map[string]replicateTargetDecision{},
    		},
    		expErr: nil,
    	},
    
    	{ // 2.
    		name:   "replicate decision for one target",
    		dsc:    "arn:minio:replication::id:bucket=true;false;arn:minio:replication::id:bucket;id",
    		expErr: nil,
    		expDsc: ReplicateDecision{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 08 20:27:40 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/upgrade/common_test.go

    			_, errors := isPrivileged.Check()
    			if len(errors) != 0 && len(tt.expectedErrNonRoot) != 0 {
    				expErr = tt.expectedErrNonRoot
    			}
    			if err != nil && !strings.Contains(err.Error(), expErr) {
    				t.Fatalf("enforceRequirements returned unexpected error, expected: %s, got %v", expErr, err)
    			}
    		})
    	}
    }
    
    func TestPrintConfiguration(t *testing.T) {
    	var tests = []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. cmd/encryption-v1_test.go

    		}
    	}
    }
    
    var decryptObjectMetaTests = []struct {
    	info    ObjectInfo
    	request *http.Request
    	expErr  error
    }{
    	{
    		info:    ObjectInfo{Size: 100},
    		request: &http.Request{Header: http.Header{}},
    		expErr:  nil,
    	},
    	{
    		info:    ObjectInfo{Size: 100, UserDefined: map[string]string{crypto.MetaAlgorithm: crypto.InsecureSealAlgorithm}},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Sep 24 04:17:08 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  8. plugin/pkg/admission/resourcequota/admission_test.go

    		if testCase.expErr == "" {
    			if err != nil {
    				t.Fatalf("Testcase, %v, failed with unexpected error: %v. ExpErr: %v", testCase.description, err, testCase.expErr)
    			}
    		} else {
    			if !strings.Contains(fmt.Sprintf("%v", err), testCase.expErr) {
    				t.Fatalf("Testcase, %v, failed with unexpected error: %v. ExpErr: %v", testCase.description, err, testCase.expErr)
    			}
    		}
    
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/addons/proxy/proxy_test.go

    			actErr := "No error"
    			if err != nil {
    				actErr = err.Error()
    			}
    			expErr := "No error"
    			if tc.expErrString != "" {
    				expErr = tc.expErrString
    			}
    			if !strings.Contains(actErr, expErr) {
    				t.Errorf(
    					"%s test failed, expected: %s, got: %s",
    					tc.name,
    					expErr,
    					actErr)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. security/pkg/nodeagent/cache/secretcache_test.go

    		t.Run(c.name, func(t *testing.T) {
    			err = sc.tryAddFileWatcher(c.filePath, dummyResourceName)
    			if err != c.expErr {
    				t.Fatalf("expected: %v, got: %v", c.expErr, err)
    			}
    			t.Logf("file watch: %v\n", sc.certWatcher.WatchList())
    			if c.expErr == nil && len(sc.certWatcher.WatchList()) != 1 {
    				t.Fatalf("expected certWatcher to watch 1 file, but it is watching: %d files", len(sc.certWatcher.WatchList()))
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top