Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 313 for logf (0.18 sec)

  1. cmd/kubemark/app/hollow_node_test.go

    			errCh := make(chan error)
    			go func() {
    				data, err := os.ReadFile(kubeconfigPath)
    				t.Logf("read %d, err=%v\n", len(data), err)
    				ctx := ktesting.Init(t)
    				errCh <- run(ctx, s)
    			}()
    
    			select {
    			case err := <-errCh:
    				t.Fatalf("Run finished unexpectedly with error: %v", err)
    			case <-time.After(3 * time.Second):
    				t.Logf("Morph %q hasn't crashed for 3s. Calling success.", morph)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/runtime/internal/wasitest/tcpecho_test.go

    		t.Fatal(err)
    	}
    	var buf [256]byte
    	n, err := conn.Read(buf[:])
    	if err != nil {
    		t.Fatal(err)
    	}
    	if string(buf[:n]) != string(payload) {
    		t.Error("unexpected payload")
    		t.Logf("expect: %d bytes (%v)", len(payload), payload)
    		t.Logf("actual: %d bytes (%v)", n, buf[:n])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 22:01:11 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/swig/swig_test.go

    		minor = atoi(string(matches[2][1:]))
    	}
    	if len(matches[3]) > 0 {
    		patch = atoi(string(matches[3][1:]))
    	}
    	if parseError != nil {
    		t.Logf("error parsing swig version %q, continuing anyway: %s", string(matches[0]), parseError)
    		return
    	}
    	t.Logf("found swig version %d.%d.%d", major, minor, patch)
    	if major < 3 || (major == 3 && minor == 0 && patch < 6) {
    		t.Skip("test requires swig 3.0.6 or later")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. operator/cmd/mesh/operator_test.go

    	cmd += " --manifests=" + string(snapshotCharts)
    
    	gotYAML, err := runCommand(cmd)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if refreshGoldenFiles() {
    		t.Logf("Refreshing golden file for %s", goldenFilepath)
    		if err := os.WriteFile(goldenFilepath, []byte(gotYAML), 0o644); err != nil {
    			t.Error(err)
    		}
    	}
    
    	wantYAML, err := readFile(goldenFilepath)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:33 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. src/runtime/time_test.go

    	cmd.Stdout = &stdout
    	cmd.Stderr = &stderr
    
    	err = testenv.CleanCmdEnv(cmd).Run()
    	if err != nil {
    		t.Fatalf("exit status: %v\n%s", err, stderr.String())
    	}
    
    	t.Logf("raw stdout: %q", stdout.String())
    	t.Logf("raw stderr: %q", stderr.String())
    
    	f1, err1 := parseFakeTime(stdout.Bytes())
    	if err1 != nil {
    		t.Fatal(err1)
    	}
    	f2, err2 := parseFakeTime(stderr.Bytes())
    	if err2 != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 03:40:04 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/net/file_test.go

    	switch runtime.GOOS {
    	case "plan9", "windows", "js", "wasip1":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    
    	for _, tt := range fileConnTests {
    		if !testableNetwork(tt.network) {
    			t.Logf("skipping %s test", tt.network)
    			continue
    		}
    
    		var network, address string
    		switch tt.network {
    		case "udp":
    			c := newLocalPacketListener(t, tt.network)
    			defer c.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue18146.go

    		nproc = 7
    	}
    	if setNproc {
    		var rlim syscall.Rlimit
    		if syscall.Getrlimit(nproc, &rlim) == nil {
    			max := int(rlim.Cur) / (threads + 5)
    			if attempts > max {
    				t.Logf("lowering attempts from %d to %d for RLIMIT_NPROC", attempts, max)
    				attempts = max
    			}
    		}
    	}
    
    	if os.Getenv("test18146") == "exec" {
    		runtime.GOMAXPROCS(1)
    		for n := threads; n > 0; n-- {
    			go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. src/os/executable_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	out, err := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", exe, src).CombinedOutput()
    	t.Logf("build output:\n%s", out)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	out, err = testenv.Command(t, exe).CombinedOutput()
    	t.Logf("exec output:\n%s", out)
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    const testExecutableDeletion = `package main
    
    import (
    	"fmt"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/cmd/pprof/pprof_test.go

    		// Try to print out profile content for debugging.
    		cmd = testenv.Command(t, pprofPath(t), "-raw", cpuExe, profile)
    		out, err = cmd.CombinedOutput()
    		if err != nil {
    			t.Logf("pprof -raw failed: %v\n%s", err, out)
    		} else {
    			t.Logf("profile content:\n%s", out)
    		}
    		return
    	}
    
    	sout := string(out)
    	want := "ROUTINE ======================== main.main"
    	if !strings.Contains(sout, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. src/internal/zstd/fuzz_test.go

    			if c > len(zstdExp) {
    				c = len(zstdExp)
    			}
    			goExp = goExp[:c]
    			zstdExp = zstdExp[:c]
    			if !bytes.Equal(goExp, zstdExp) {
    				t.Error("byte mismatch after error")
    				t.Logf("Go error: %v\n", goErr)
    				t.Logf("zstd error: %v\n", zstdErr)
    				showDiffs(t, zstdExp, goExp)
    			}
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 04:10:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top