Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDynamicTimeoutConcurrent (0.25 sec)

  1. cmd/dynamic-timeouts_test.go

    	// Check whether eventual timeout is between initial value and success timeout
    	if initial <= adjusted || adjusted <= successTimeout {
    		t.Errorf("Failure to decrease timeout appropriately")
    	}
    }
    
    func TestDynamicTimeoutConcurrent(t *testing.T) {
    	// Race test.
    	timeout := newDynamicTimeout(time.Second, time.Millisecond)
    	var wg sync.WaitGroup
    	for i := 0; i < runtime.GOMAXPROCS(0); i++ {
    		wg.Add(1)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 5.4K bytes
    - Viewed (0)
Back to top