Created public api, cleaned up internals.

This commit is contained in:
Jay
2026-04-19 14:23:10 -04:00
parent d2528d3ac7
commit dfd28d65bc
7 changed files with 158 additions and 126 deletions
+4 -5
View File
@@ -107,13 +107,12 @@ func TestWithWriteTimeout(t *testing.T) {
}
func TestWithRetry(t *testing.T) {
t.Run("default", func(t *testing.T) {
conf := &ConnectionConfig{}
opt := WithRetry()
t.Run("without retry", func(t *testing.T) {
conf := GetDefaultConnectionConfig()
opt := WithoutRetry()
err := applyConnectionOptions(conf, opt)
assert.NoError(t, err)
assert.NotNil(t, conf.Retry)
assert.Equal(t, conf.Retry, GetDefaultRetryConfig())
assert.Nil(t, conf.Retry)
})
t.Run("with attempts", func(t *testing.T) {