fix
This commit is contained in:
+8
-8
@@ -12,12 +12,12 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"wh/api"
|
||||
"wh/config"
|
||||
"wh/runner"
|
||||
"wh/sim"
|
||||
"wh/store"
|
||||
"wh/vm"
|
||||
"halcyon/api"
|
||||
"halcyon/config"
|
||||
"halcyon/runner"
|
||||
"halcyon/sim"
|
||||
"halcyon/store"
|
||||
"halcyon/vm"
|
||||
)
|
||||
|
||||
func TestEndToEnd(t *testing.T) {
|
||||
@@ -25,10 +25,10 @@ func TestEndToEnd(t *testing.T) {
|
||||
cfg := config.Default()
|
||||
cfg.AsteroidCount = 20
|
||||
|
||||
// Set WH_TEST_PG to a postgres:// URL to run this against PostgreSQL
|
||||
// Set HALCYON_TEST_PG to a postgres:// URL to run this against PostgreSQL
|
||||
// (its public schema is wiped first).
|
||||
dsn := "sqlite:" + filepath.Join(t.TempDir(), "t.db")
|
||||
if pg := os.Getenv("WH_TEST_PG"); pg != "" {
|
||||
if pg := os.Getenv("HALCYON_TEST_PG"); pg != "" {
|
||||
db, err := sql.Open("pgx", pg)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user