- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for wantCode (0.12 sec)
-
src/net/http/httptest/httptest_test.go
slurp, err := io.ReadAll(got.Body) if err != nil { t.Errorf("ReadAll: %v", err) } if string(slurp) != tt.wantBody { t.Errorf("Body = %q; want %q", slurp, tt.wantBody) } tt.want = tt.want.WithContext(context.Background()) got.Body = nil // before DeepEqual if !reflect.DeepEqual(got.URL, tt.want.URL) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 18:09:14 UTC 2024 - 4.6K bytes - Viewed (0) -
cni/pkg/repair/repair_test.go
} }) } } func TestDeletePods(t *testing.T) { tests := []struct { name string client kube.Client config config.RepairConfig wantErr bool wantPods []*corev1.Pod wantCount float64 wantTags map[string]string }{ { name: "No broken pods", client: fakeClient(workingPod, workingPodDiedPreviously), config: config.RepairConfig{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 10.6K bytes - Viewed (0) -
pkg/registry/core/pod/strategy_test.go
t.Errorf("Unexpected error: %v", errs.ToAggregate()) } Strategy.PrepareForCreate(genericapirequest.NewContext(), pod) wantPod.Spec.TopologySpreadConstraints = append(wantPod.Spec.TopologySpreadConstraints, tc.wantTopologySpreadConstraints...) if diff := cmp.Diff(wantPod, pod, cmpopts.IgnoreFields(pod.Status, "Phase", "QOSClass")); diff != "" { t.Errorf("%s unexpected result (-want, +got): %s", tc.name, diff) } })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 76.2K bytes - Viewed (0) -
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) -
pkg/registry/storage/csidriver/strategy_test.go
tests := []struct { name string old, update *storage.CSIDriver seLinuxMountReadWriteOncePodEnabled bool wantCapacity *bool wantModes []storage.VolumeLifecycleMode wantTokenRequests []storage.TokenRequest wantRequiresRepublish *bool wantGeneration int64
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 16.7K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)