cbd1d5f067
Add tests for queuing * startingtest * queuerunnertest * addedtestfuncs * testtests * passintegration * unittests
22 lines
347 B
Go
22 lines
347 B
Go
package test_test
|
|
|
|
import (
|
|
"context"
|
|
"queryorchestration/internal/test"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCreateDB(t *testing.T) {
|
|
ctx := context.Background()
|
|
|
|
dbcfg, cleanup := test.CreateDB(t, ctx, &test.CreateDatabaseConfig{
|
|
NoPool: true,
|
|
})
|
|
assert.NotNil(t, dbcfg)
|
|
assert.NotNil(t, cleanup)
|
|
|
|
cleanup()
|
|
}
|