Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NormFloat64 (0.08 sec)

  1. cmd/dynamic-timeouts_test.go

    	timeout := newDynamicTimeout(time.Minute, time.Second)
    
    	rand.Seed(0)
    
    	initial := timeout.Timeout()
    
    	for range 10 {
    		testDynamicTimeoutAdjust(t, timeout, func() float64 {
    			return 1.0 + rand.NormFloat64()
    		})
    	}
    
    	adjusted := timeout.Timeout()
    	if initial <= adjusted {
    		t.Errorf("Failure to decrease timeout, expected %v to be less than %v", adjusted, initial)
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top