Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 78 of 78 for timeEnd (0.36 sec)

  1. src/crypto/tls/handshake_server_test.go

    	case connOrError := <-connChan:
    		if err, ok := connOrError.(error); ok {
    			return nil, nil, err
    		}
    		tcpConn = connOrError.(net.Conn)
    	case <-time.After(2 * time.Second):
    		return nil, nil, errors.New("timed out waiting for connection from child process")
    	}
    
    	record := &recordingConn{
    		Conn: tcpConn,
    	}
    
    	return record, cmd, nil
    }
    
    func (test *serverTest) dataPath() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/devicemanager/manager_test.go

    	as.Nil(err)
    	runContainerOpts, err := testManager.GetDeviceRunContainerOptions(pod, &pod.Spec.Containers[0])
    	as.Nil(err)
    	var initializedDevs []string
    	select {
    	case <-time.After(time.Second):
    		t.Fatalf("Timed out while waiting on channel for response from PreStartContainer RPC stub")
    	case initializedDevs = <-ch:
    		break
    	}
    
    	as.Contains(initializedDevs, "dev1")
    	as.Contains(initializedDevs, "dev2")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    	select {
    	case err := <-c:
    		if err == nil {
    			t.Error("error expected")
    		} else if err != io.ErrNoProgress {
    			t.Error("unexpected error:", err)
    		}
    	case <-time.After(time.Second):
    		t.Error("test timed out (endless loop in ReadByte?)")
    	}
    }
    
    // A StringReader delivers its data one string segment at a time via Read.
    type StringReader struct {
    	data []string
    	step int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
  4. src/time/time.go

    // monotonic clock reading.
    //
    // For example, this code always computes a positive elapsed time of
    // approximately 20 milliseconds, even if the wall clock is changed during
    // the operation being timed:
    //
    //	start := time.Now()
    //	... operation that takes 20 milliseconds ...
    //	t := time.Now()
    //	elapsed := t.Sub(start)
    //
    // Other idioms, such as [time.Since](start), [time.Until](deadline), and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  5. src/cmd/internal/testdir/testdir_test.go

    		out, err := runcmd(cmdline...)
    		if wantError {
    			if err == nil {
    				return fmt.Errorf("compilation succeeded unexpectedly\n%s", out)
    			}
    			if err == errTimeout {
    				return fmt.Errorf("compilation timed out")
    			}
    		} else {
    			if err != nil {
    				return err
    			}
    		}
    		if *updateErrors {
    			t.updateErrors(string(out), long)
    		}
    		return t.errorCheck(string(out), wantAuto, long, t.goFile)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  6. src/runtime/pprof/pprof_test.go

    	if deadline, ok := t.Deadline(); ok {
    		if d := time.Until(deadline); d > 1*time.Second {
    			timer := time.AfterFunc(d-1*time.Second, func() {
    				debug.SetTraceback("all")
    				panic(fmt.Sprintf("timed out waiting for %#q", re))
    			})
    			defer timer.Stop()
    		}
    	}
    
    	buf := make([]byte, 64<<10)
    	for {
    		runtime.Gosched()
    		n := runtime.Stack(buf, true)
    		if n == len(buf) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/test/test.go

    		// overhead, and scale it up from there proportional to the overall test
    		// timeout on the assumption that the time to write and read a goroutine
    		// dump from a timed-out test process scales roughly with the overall
    		// running time of the test.
    		//
    		// This is probably too generous when the timeout is very long, but it seems
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. src/net/http/transport.go

    		panic("net/http: internal error: connCount underflow")
    	}
    
    	// Can we hand this count to a goroutine still waiting to dial?
    	// (Some goroutines on the wait list may have timed out or
    	// gotten a connection another way. If they're all gone,
    	// we don't want to kick off any spurious dial operations.)
    	if q := t.connsPerHostWait[key]; q.len() > 0 {
    		done := false
    		for q.len() > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
Back to top