Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for wantCode (0.14 sec)

  1. src/net/http/clientserver_test.go

    func testHandlerWritesTooMuch(t *testing.T, mode testMode) {
    	wantBody := []byte("123")
    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		rc := NewResponseController(w)
    		w.Header().Set("Content-Length", fmt.Sprintf("%v", len(wantBody)))
    		rc.Flush()
    		w.Write(wantBody)
    		rc.Flush()
    		n, err := io.WriteString(w, "x") // too many
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  2. pkg/controller/controller_utils_test.go

    		name            string
    		podCreationFunc func(podControl RealPodControl) error
    		wantPod         *v1.Pod
    	}
    	var tests = []test{
    		{
    			name: "Create pod",
    			podCreationFunc: func(podControl RealPodControl) error {
    				return podControl.CreatePods(context.TODO(), ns, controllerSpec.Spec.Template, controllerSpec, controllerRef)
    			},
    			wantPod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. pkg/kube/inject/inject_test.go

    		}
    		gotPod = patchedPod
    	} else {
    		gotPod = inputPod
    	}
    
    	if err := normalizeAndCompareDeployments(gotPod, wantPod, false, t); err != nil {
    		t.Fatal(err)
    	}
    	if idempotencyCheck {
    		t.Run("idempotency", func(t *testing.T) {
    			if err := normalizeAndCompareDeployments(gotPod, wantPod, true, t); err != nil {
    				t.Fatal(err)
    			}
    		})
    	}
    }
    
    func TestSkipUDPPorts(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    			os.Exit(1)
    		}
    	}
    
    	// Add storageclasses
    	waitMode := storagev1.VolumeBindingWaitForFirstConsumer
    	immediateMode := storagev1.VolumeBindingImmediate
    	classes := []*storagev1.StorageClass{
    		{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: waitClassWithProvisioner,
    			},
    			VolumeBindingMode: &waitMode,
    			Provisioner:       provisioner,
    			AllowedTopologies: []v1.TopologySelectorTerm{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. src/net/http/client_test.go

    		t.Fatal(err)
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != 200 {
    		t.Fatal(resp.Status)
    	}
    	if got, err := io.ReadAll(resp.Body); err != nil || string(got) != wantBody {
    		t.Errorf("body = %q; want %q", got, wantBody)
    	}
    }
    
    // Issue 17494: cookies should be altered when Client follows redirects.
    func TestClientAltersCookiesOnRedirect(t *testing.T) { run(t, testClientAltersCookiesOnRedirect) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  6. 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)
  7. 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