- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 5,360 for watt (0.17 sec)
-
src/log/log_test.go
now = now.Add(time.Second) want = fmt.Sprintf("Test:%d/%.2d/%.2d %.2d:%.2d:%.2d hello\n", now.Year(), now.Month(), now.Day(), now.Hour(), now.Minute(), now.Second()) if got == want { return } t.Errorf("got %q; want %q", got, want) } func TestEmptyPrintCreatesLine(t *testing.T) { var b strings.Builder l := New(&b, "Header:", LstdFlags) l.Print() l.Println("non-empty")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 20:04:37 UTC 2023 - 7.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go
continue } } else { if got != tt.want[i] { t.Errorf("Backoff.Step(%d) = %v, want %v", i, got, tt.want) continue } } } }) } } } func TestContextForChannel(t *testing.T) { var wg sync.WaitGroup parentCh := make(chan struct{}) done := make(chan struct{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 41.1K bytes - Viewed (0) -
src/syscall/exec_pdeathsig_test.go
defer func() { chldStdin.Close() cmd.Wait() if stderr.Len() > 0 { t.Logf("stderr:\n%s", stderr) } }() if err != nil { t.Fatalf("failed to start first child process: %v", err) } chldPipe := bufio.NewReader(chldStdout) if got, err := chldPipe.ReadString('\n'); got == "start\n" { syscall.Kill(cmd.Process.Pid, syscall.SIGTERM) want := "ok\n"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 21:23:17 UTC 2023 - 4.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/goroot_executable_trimpath.txt
) func main() { exe := os.Args[1] want := os.Args[2] cmd := exec.Command(exe, "env", "GOROOT") out, err := cmd.CombinedOutput() if err != nil { fmt.Fprintf(os.Stderr, "%s env GOROOT: %v, %s\n", exe, err, out) os.Exit(1) } goroot, err := filepath.EvalSymlinks(strings.TrimSpace(string(out))) if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } want, err = filepath.EvalSymlinks(want) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 3K bytes - Viewed (0) -
cmd/kubeadm/app/util/dryrun/dryrun.go
func (w *Waiter) WaitForAPI() error { fmt.Println("[dryrun] Would wait for the API Server's /healthz endpoint to return 'ok'") return nil } // WaitForPodsWithLabel just returns a dummy nil, to indicate that the program should just proceed func (w *Waiter) WaitForPodsWithLabel(kvLabel string) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 6.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go
// that is blocked on context cancellation. However, from APF point of view, // we don't want to wait until the whole watch request is processed (which is // when it context is actually cancelled) - we want to unblock the goroutine as // soon as the request is processed from the APF point of view. //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 15.3K bytes - Viewed (0) -
internal/grid/grid_test.go
t.Log("Roundtrip:", time.Since(start)) if len(resp) != 0 { t.Errorf("want nil, got %q", string(resp)) } if err != RemoteErr(testPayload) { t.Errorf("want error %v(%T), got %v(%T)", RemoteErr(testPayload), RemoteErr(testPayload), err, err) } t.Log("Roundtrip:", time.Since(start)) }) t.Run("localToRemoteHuge", func(t *testing.T) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 36.4K bytes - Viewed (0) -
src/net/net_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 21:04:44 UTC 2024 - 13.3K bytes - Viewed (0) -
src/net/timeout_test.go
if t1.Before(deadline) { t.Errorf("Read took %s; expected at least %s", actual, d) } if t.Failed() { return } if want := timeoutUpperBound(d); actual > want { next, ok := nextTimeout(actual) if !ok { t.Fatalf("Read took %s; expected at most %v", actual, want) } // Maybe this machine is too slow to reliably schedule goroutines within // the requested duration. Increase the timeout and try again.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 18:06:55 UTC 2024 - 30K 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)