1package sql 2 3import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7) 8 9func TestConnection(t *testing.T) { 10 db, err := GetDBConnectionPool() 11 assert.Equal(t, nil, err, "Database interface error should not be nil") 12 err = db.Ping() 13 assert.Equal(t, nil, err, "No error should exist pinging the database") 14} 15