23 lines
341 B
Go
23 lines
341 B
Go
//go:build postgres
|
|
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"os"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestPostgres(t *testing.T) {
|
|
ctx, can := context.WithTimeout(context.Background(), time.Second*15)
|
|
defer can()
|
|
|
|
conn := os.Getenv("INTEGRATION_POSTGRES_CONN")
|
|
pg, err := NewPostgres(ctx, conn)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
testDriver(t, pg)
|
|
}
|