Use pool config.

This commit is contained in:
Jay
2026-04-16 18:41:19 -04:00
parent 81aa73e8e0
commit ff58207779
2 changed files with 14 additions and 12 deletions

View File

@@ -68,13 +68,15 @@ func TestPoolConnect(t *testing.T) {
})
t.Run("fails to add connection", func(t *testing.T) {
pool, err := NewOutboundPool(&ConnectionConfig{
Retry: &RetryConfig{
MaxRetries: 1,
InitialDelay: 1 * time.Millisecond,
MaxDelay: 5 * time.Millisecond,
},
}, nil)
pool, err := NewOutboundPool(
&PoolConfig{
ConnectionConfig: &ConnectionConfig{
Retry: &RetryConfig{
MaxRetries: 1,
InitialDelay: 1 * time.Millisecond,
MaxDelay: 5 * time.Millisecond,
}},
}, nil)
assert.NoError(t, err)
pool.dialer = &MockDialer{
DialFunc: func(string, http.Header) (Socket, *http.Response, error) {