fee71e7740
Feature/postprocessing * tests * passtest * fixshorttests * mosttests * improvingbasedockerfile * testspeeds * testing * host * canparallel * clean * passfullsuite * singlepagemax * test * findfeatures * findstables * tbls * tablestoo * tablestoo * lateraltests * tableloc * cleanup * inlinetable * childids * cleanup * tests
21 lines
319 B
Go
21 lines
319 B
Go
package database
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"queryorchestration/internal/serviceconfig/database"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCreateDB(t *testing.T) {
|
|
ctx := context.Background()
|
|
cfg := &database.DBConfig{
|
|
DBHost: "invalid_value",
|
|
}
|
|
|
|
err := createDB(ctx, cfg)
|
|
assert.Error(t, err)
|
|
}
|