Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestErrorWriteLoopRace (0.32 sec)

  1. src/net/http/transport_test.go

    }
    
    // Issue 37669
    // Test that a cancellation doesn't result in a data race due to the writeLoop
    // goroutine being left running, if the caller mutates the processed Request
    // upon completion.
    func TestErrorWriteLoopRace(t *testing.T) {
    	if testing.Short() {
    		return
    	}
    	t.Parallel()
    	for i := 0; i < 1000; i++ {
    		delay := time.Duration(mrand.Intn(5)) * time.Millisecond
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top