Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for wantCode (0.18 sec)

  1. src/net/http/transport_test.go

    	c := &Client{Transport: tr}
    
    	testResponse := func(req *Request, name string, wantCode int) {
    		t.Helper()
    		res, err := c.Do(req)
    		if err != nil {
    			t.Fatalf("%s: Do: %v", name, err)
    		}
    		if res.StatusCode != wantCode {
    			t.Fatalf("%s: Response Statuscode=%d; want %d", name, res.StatusCode, wantCode)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  2. pkg/api/pod/util_test.go

    		newPod      *api.Pod
    		wantPod     *api.Pod
    	}{
    		{
    			description: "old with claims / new with claims / disabled",
    			oldPod:      podWithClaims,
    			newPod:      podWithClaims,
    			wantPod:     podWithClaims,
    		},
    		{
    			description: "old without claims / new with claims / disabled",
    			oldPod:      podWithoutClaims,
    			newPod:      podWithClaims,
    			wantPod:     podWithoutClaims,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  3. pkg/scheduler/schedule_one_test.go

    					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)
    			}
    			wantEvaluatedNodes := len(test.nodes)
    			if test.wantEvaluatedNodes != nil {
    				wantEvaluatedNodes = int(*test.wantEvaluatedNodes)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  4. src/net/http/serve_test.go

    			t.Errorf("%q. unexpected error: %v", badTE, err)
    			continue
    		}
    
    		wantBody := fmt.Sprintf("" +
    			"HTTP/1.1 501 Not Implemented\r\nContent-Type: text/plain; charset=utf-8\r\n" +
    			"Connection: close\r\n\r\nUnsupported transfer encoding")
    
    		if string(gotBody) != wantBody {
    			t.Errorf("%q. body\ngot\n%q\nwant\n%q", badTE, gotBody, wantBody)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  5. pkg/controller/job/job_controller_test.go

    		pods              []*v1.Pod
    		wantPods          []string
    		wantPodsFinalizer []string
    	}{
    		"only matching": {
    			pods: []*v1.Pod{
    				buildPod().name("pod1").job(job).trackingFinalizer().Pod,
    				buildPod().name("pod2").job(otherJob).Pod,
    				buildPod().name("pod3").ns(job.Namespace).Pod,
    				buildPod().name("pod4").job(job).Pod,
    			},
    			wantPods:          []string{"pod1", "pod4"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
Back to top