package test import ( "context" "os" "path" "queryorchestration/internal/database" "testing" "github.com/stretchr/testify/assert" ) func TestCreateContainer(t *testing.T) { if testing.Short() { t.Skip("Skipping long test in short mode") } ctx := context.Background() ncfg, ncleanup := CreateNetwork(t, ctx) defer ncleanup() dbcfg, dbcleanup := CreateDB(t, ctx, &CreateDatabaseConfig{ Network: ncfg, Migrations: &database.MigrationConfig{ BasePath: path.Join(os.Getenv("PWD"), "../.."), }, }) defer dbcleanup() cfg := &containerConfig{ ServiceName: "queryService", DB: dbcfg.External, Network: ncfg, } container, cleanup := createContainer(t, ctx, cfg) assert.NotNil(t, container) assert.NotNil(t, cleanup) cleanup() }