Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 5,360 for watt (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/net/net_test.go

    					t.Error(perr)
    				}
    				t.Fatal(err)
    			}
    			var b [1]byte
    			n, err := c.Read(b[:])
    			if n != 0 || err != io.EOF {
    				t.Fatalf("got (%d, %v); want (0, io.EOF)", n, err)
    			}
    			n, err = c.Write(b[:])
    			if err == nil {
    				t.Fatalf("got (%d, %v); want (any, error)", n, err)
    			}
    		})
    	}
    }
    
    func TestConnClose(t *testing.T) {
    	t.Parallel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 21:04:44 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. src/net/dial_test.go

    			if c != nil {
    				c.Close()
    			}
    
    			if tt.expectOk && err != nil {
    				t.Errorf("#%d: got %v; want nil", i, err)
    			} else if !tt.expectOk && err == nil {
    				t.Errorf("#%d: got nil; want non-nil", i)
    			}
    
    			if elapsed < tt.expectElapsed || elapsed >= forever {
    				t.Errorf("#%d: got %v; want >= %v, < forever", i, elapsed, tt.expectElapsed)
    			}
    
    			// Repeat each case, ensuring that it can be canceled.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. src/time/sleep_test.go

    		testAfterStop(t, newTimerFunc)
    	})
    }
    
    func testAfterStop(t *testing.T, newTimer func(Duration) *Timer) {
    	// We want to test that we stop a timer before it runs.
    	// We also want to test that it didn't run after a longer timer.
    	// Since we don't want the test to run for too long, we don't
    	// want to use lengthy times. That makes the test inherently flaky.
    	// So only report an error if it fails five times in a row.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top