Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 3,466 for wabt (0.28 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go

    	// /readyz must return an error, but we need to give it some time
    	err := wait.PollImmediate(100*time.Millisecond, wait.ForeverTestTimeout, func() (done bool, err error) {
    		resultGot := doer.Do(newClient(true), func(httptrace.GotConnInfo) {}, "/readyz", time.Second)
    		// wait until we have a non 200 response
    		if resultGot.response != nil && resultGot.response.StatusCode == http.StatusOK {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  2. src/runtime/debug_test.go

    		for i := range in {
    			out[i] = in[i] + 1
    		}
    		return
    	}
    	var want [N]int
    	for i := range args.in {
    		args.in[i] = i
    		want[i] = i + 1
    	}
    	if _, err := runtime.InjectDebugCall(g, fn, nil, &args, debugCallTKill, false); err != nil {
    		t.Fatal(err)
    	}
    	if want != args.out {
    		t.Fatalf("want %v, got %v", want, args.out)
    	}
    }
    
    func TestDebugCallGC(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 15:08:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/metrics/metrics_test.go

    	testCases := []struct {
    		name         string
    		methodName   string
    		duration     time.Duration
    		operationErr error
    		want         string
    	}{
    		{
    			name:         "operation success",
    			methodName:   "/v2alpha1.KeyManagementService/Encrypt",
    			duration:     1 * time.Second,
    			operationErr: nil,
    			want: `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 09 22:31:32 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  4. src/runtime/gc_test.go

    		t.Fatalf("live object not in reachable set; want %b, got %b", want, got)
    	}
    	if bits.OnesCount64(got&^want) > 1 {
    		// Note: we can occasionally have a value that is retained even though
    		// it isn't live, due to conservative scanning of stack frames.
    		// See issue 67204. For now, we allow a "slop" of 1 unintentionally
    		// retained object.
    		t.Fatalf("dead object in reachable set; want %b, got %b", want, got)
    	}
    	runtime.KeepAlive(half)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/internal/concurrent/hashtriemap_test.go

    		}
    		if ok && got != want {
    			t.Errorf("expected key %v to have value %v, got %v", key, want, got)
    		}
    	}
    }
    
    func expectMissing[K, V comparable](t *testing.T, key K, want V) func(got V, ok bool) {
    	t.Helper()
    	if want != *new(V) {
    		// This is awkward, but the want argument is necessary to smooth over type inference.
    		// Just make sure the want argument always looks the same.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top