- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 121 for watt (0.06 sec)
-
src/net/http/transport_test.go
res.Body.Close() t.Errorf("unexpected success") } r := <-reqc if got, want := r.Header.Get("User-Agent"), "foo"; got != want { t.Errorf("CONNECT request User-Agent = %q; want %q", got, want) } if got, want := r.Header.Get("Other"), "bar"; got != want { t.Errorf("CONNECT request Other = %q; want %q", got, want) } } func TestTransportProxyGetConnectHeader(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 192.6K bytes - Viewed (0) -
src/database/sql/sql_test.go
if err != nil { t.Fatal(err) } want, fail := 2, errors.New("fail") r := rows.rowsi.(*rowsCursor) r.errPos, r.err = want, fail got := 0 for rows.Next() { got++ } if got != want { t.Errorf("got %d rows, want %d", got, want) } if err := rows.Err(); err != fail { t.Errorf("got error %v, want %v", err, fail) } if !r.closed {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 111.6K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework_test.go
if runPermitPluginsStatus.Code() != framework.Wait { t.Fatalf("Expected RunPermitPlugins to return status %v, but got %v", framework.Wait, runPermitPluginsStatus.Code()) } go tt.action(f) got := f.WaitOnPermit(ctx, pod) if !reflect.DeepEqual(tt.want, got) { t.Errorf("Unexpected status: want %v, but got %v", tt.want, got) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 103K bytes - Viewed (0) -
pkg/scheduler/schedule_one_test.go
}) if err != nil { t.Fatal(err) } s.ScheduleOne(ctx) // Wait for pod to succeed or fail scheduling select { case <-eventChan: case <-time.After(wait.ForeverTestTimeout): t.Fatalf("scheduling timeout after %v", wait.ForeverTestTimeout) } stopFunc() // Wait for scheduling to return an error or succeed binding. var ( gotErr error
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/serve_test.go
mux.ServeHTTP(w, req) if got, want := w.Code, tt.code; got != want { t.Errorf("#%d: Status = %d; want = %d", i, got, want) } if tt.code == 301 { if got, want := w.HeaderMap.Get("Location"), tt.loc; got != want { t.Errorf("#%d: Location = %q; want = %q", i, got, want) } } else { if got, want := w.HeaderMap.Get("Result"), tt.want; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
if got, want := controllerRef.APIVersion, "batch/v1"; got != want { t.Errorf("controllerRef.APIVersion = %q, want %q", got, want) } if got, want := controllerRef.Kind, "Job"; got != want { t.Errorf("controllerRef.Kind = %q, want %q", got, want) } if got, want := controllerRef.Name, job.Name; got != want { t.Errorf("controllerRef.Name = %q, want %q", got, want)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go
if err != nil { t.Fatalf("sign claims: %v", err) } token, err := jws.CompactSerialize() if err != nil { t.Fatalf("serialize token: %v", err) } // wait for the authenticator to be healthy err = wait.PollUntilContextCancel(ctx, time.Millisecond, true, func(context.Context) (bool, error) { return a.HealthCheck() == nil, nil }) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 97.7K bytes - Viewed (0) -
pkg/controller/daemon/daemon_controller_test.go
} if got, want := updated.Status.DesiredNumberScheduled, int32(podControl.FakePodControl.CreateLimit)*10; got != want { t.Errorf("Status.DesiredNumberScheduled = %v, want %v", got, want) } if got, want := updated.Status.CurrentNumberScheduled, int32(podControl.FakePodControl.CreateLimit); got != want { t.Errorf("Status.CurrentNumberScheduled = %v, want %v", got, want) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 111.4K bytes - Viewed (0) -
src/reflect/all_test.go
f := typ.FieldByIndex(test.index) if got, want := f.PkgPath, test.pkgPath; got != want { t.Errorf("%s: Field(%d).PkgPath = %q, want %q", name, test.index, got, want) } if got, want := f.Anonymous, test.embedded; got != want { t.Errorf("%s: Field(%d).Anonymous = %v, want %v", name, test.index, got, want) } if got, want := f.IsExported(), test.exported; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
if wantLen := len(tt.want); q.activeQ.Len() != wantLen { t.Errorf("length compare: want %v, got %v", wantLen, q.activeQ.Len()) } // Check if the specific pod exists in activeQ for _, want := range tt.want { if _, exist, _ := q.activeQ.Get(newQueuedPodInfoForLookup(want.PodInfo.Pod)); !exist { t.Errorf("podInfo not exist in activeQ: want %v", want.PodInfo.Pod.Name) } } })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0)