Skip to content

Commit 7f0247c

Browse files
committed
update test
1 parent acf3371 commit 7f0247c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dbos/utils_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package dbos
22

33
import (
44
"context"
5+
"fmt"
6+
"net/url"
57
"os"
68
"sync"
79
"testing"
@@ -16,7 +18,9 @@ func setupDBOS(t *testing.T) {
1618

1719
databaseURL := os.Getenv("DBOS_DATABASE_URL")
1820
if databaseURL == "" {
19-
t.Skip("DBOS_DATABASE_URL not set, skipping integration test")
21+
fmt.Println("DBOS_DATABASE_URL not set, using default: postgres://postgres:${PGPASSWORD}@localhost:5432/postgres?sslmode=disable")
22+
password := url.QueryEscape(os.Getenv("PGPASSWORD"))
23+
databaseURL = fmt.Sprintf("postgres://postgres:%s@localhost:5432/postgres?sslmode=disable", password)
2024
}
2125

2226
// Clean up the test database

0 commit comments

Comments
 (0)