MCPcopy
hub / github.com/grpc/grpc-go / TestWithBackoffMaxDelay

Method TestWithBackoffMaxDelay

clientconn_test.go:406–412  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

404}
405
406func (s) TestWithBackoffMaxDelay(t *testing.T) {
407 md := DefaultBackoffConfig.MaxDelay / 2
408 bc := backoff.DefaultConfig
409 bc.MaxDelay = md
410 wantBackoff := internalbackoff.Exponential{Config: bc}
411 testBackoffConfigSet(t, wantBackoff, WithBackoffMaxDelay(md))
412}
413
414func (s) TestWithConnectParams(t *testing.T) {
415 bd := 2 * time.Second

Callers

nothing calls this directly

Calls 2

testBackoffConfigSetFunction · 0.85
WithBackoffMaxDelayFunction · 0.85

Tested by

no test coverage detected