Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 94 for expectGet (0.27 sec)

  1. src/crypto/x509/verify_test.go

    }
    
    func expectHashError(t *testing.T, err error) {
    	if err == nil {
    		t.Fatalf("no error resulted from invalid hash")
    	}
    	if expected := "algorithm unimplemented"; !strings.Contains(err.Error(), expected) {
    		t.Fatalf("error resulting from invalid hash didn't contain '%s', rather it was: %v", expected, err)
    	}
    }
    
    func expectNameConstraintsError(t *testing.T, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    		}
    		if cl, expected := res.ContentLength, int64(3); cl != expected {
    			t.Errorf("for %s expected res.ContentLength of %d; got %d", url, expected, cl)
    		}
    		if cl, expected := res.Header.Get("Content-Length"), "3"; cl != expected {
    			t.Errorf("for %s expected Content-Length header of %q; got %q", url, expected, cl)
    		}
    		if tl, expected := len(res.TransferEncoding), 0; tl != expected {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. pkg/apis/admissionregistration/validation/validation_test.go

    			err := errs.ToAggregate()
    			if err != nil {
    				if e, a := test.expectedError, err.Error(); !strings.Contains(a, e) || e == "" {
    					t.Errorf("expected to contain:\n  %s\ngot:\n  %s", e, a)
    				}
    			} else {
    				if test.expectedError != "" {
    					t.Errorf("unexpected no error, expected to contain:\n  %s", test.expectedError)
    				}
    			}
    		})
    
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 147.1K bytes
    - Viewed (0)
  4. pkg/apis/batch/validation/validation_test.go

    				err := errs[0]
    				if len(v.createErr) == 0 {
    					t.Errorf("unexpected error: %#v, none expected", err)
    					return
    				}
    				if !strings.Contains(err.Error(), v.createErr) {
    					t.Errorf("unexpected error: %v, expected: %s", err, v.createErr)
    				}
    			} else if len(v.createErr) != 0 {
    				t.Errorf("no error, expected %v", v.createErr)
    				return
    			}
    
    			oldSpec := v.cronJob.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  5. pkg/controller/podautoscaler/horizontal_test.go

    			assert.Equal(t, namespace, obj.Namespace, "the HPA namespace should be as expected")
    			assert.Equal(t, hpaName, obj.Name, "the HPA name should be as expected")
    			assert.Equal(t, tc.expectedDesiredReplicas, obj.Status.DesiredReplicas, "the desired replica count reported in the object status should be as expected")
    			if tc.verifyCPUCurrent {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go

    	if err != nil {
    		if !expectErr {
    			t.Fatalf("authenticate token: %v", err)
    		}
    		if got := err.Error(); c.wantErr != got {
    			t.Fatalf("expected error %q when authenticating token but got %q", c.wantErr, got)
    		}
    		return
    	}
    
    	if expectErr {
    		t.Fatalf("expected error %q when authenticating token but got none", c.wantErr)
    	}
    	if !ok {
    		if !c.wantSkip {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 97.7K bytes
    - Viewed (0)
  7. pkg/api/pod/util_test.go

    	secretPaths = secretPaths.Difference(excludedSecretPaths)
    	if missingPaths := expectedSecretPaths.Difference(secretPaths); len(missingPaths) > 0 {
    		t.Logf("Missing expected secret paths:\n%s", strings.Join(sets.List[string](missingPaths), "\n"))
    		t.Error("Missing expected secret paths. Verify VisitPodSecretNames() is correctly finding the missing paths, then correct expectedSecretPaths")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  8. pkg/scheduler/schedule_one_test.go

    				if gotOK != wantOK {
    					t.Errorf("Expected err to be FitError: %v, but got %v (error: %v)", wantOK, gotOK, err)
    				} else if gotOK {
    					if diff := cmp.Diff(wantFitErr, gotFitErr); diff != "" {
    						t.Errorf("Unexpected fitErr: (-want, +got): %s", diff)
    					}
    				}
    			}
    			if test.wantNodes != nil && !test.wantNodes.Has(result.SuggestedHost) {
    				t.Errorf("Expected: %s, got: %s", test.wantNodes, result.SuggestedHost)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

          !(axis == -1 || (axis >= 0 && axis <= indices_ty.getShape().size()))) {
        return op.emitOpError()
               << "expected axis (" << axis << ") to be -1 or between [0, "
               << indices_ty.getShape().size() << "]";
      }
    
      if (axis < -1) {
        return op.emitOpError() << "expected axis (" << axis
                                << ") to be -1 or between [0, rank(indices()))";
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet.go

    // a pod. This method is reentrant and expected to converge a pod towards the
    // desired state of the spec. The reverse (teardown) is handled in
    // SyncTerminatingPod and SyncTerminatedPod. If SyncPod exits without error,
    // then the pod runtime state is in sync with the desired configuration state
    // (pod is running). If SyncPod exits with a transient error, the next
    // invocation of SyncPod is expected to make progress towards reaching the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top