7001ca854c
Queuing Changes and Cfg Testing * staarting * staarting * startedpush * note * save * mocking * removederrs * fixtests * cleanuperrs * newenvsetup * preppingtests * queue * mmovetocfgpassunittests * sortoutconfig * passinginteg * deps * fixtests
18 lines
275 B
Go
18 lines
275 B
Go
package migrations
|
|
|
|
import (
|
|
"queryorchestration/internal/serviceconfig/database"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCreateDB(t *testing.T) {
|
|
cfg := &database.DBConfig{
|
|
DBHost: "invalid_value",
|
|
}
|
|
|
|
err := createDB(cfg)
|
|
assert.Error(t, err)
|
|
}
|