github.com/safedep/dry@v0.0.0-20241016050132-a15651f0548b/db/sql_adapter_test.go (about)

     1  package db
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestDefaultSqlAdapterConfig(t *testing.T) {
    10  	config := DefaultSqlAdapterConfig()
    11  
    12  	assert.Equal(t, 5, config.MaxIdleConnections)
    13  	assert.Equal(t, 50, config.MaxOpenConnections)
    14  }