We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acf3371 commit 7f0247cCopy full SHA for 7f0247c
dbos/utils_test.go
@@ -2,6 +2,8 @@ package dbos
2
3
import (
4
"context"
5
+ "fmt"
6
+ "net/url"
7
"os"
8
"sync"
9
"testing"
@@ -16,7 +18,9 @@ func setupDBOS(t *testing.T) {
16
18
17
19
databaseURL := os.Getenv("DBOS_DATABASE_URL")
20
if databaseURL == "" {
- 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)
24
}
25
26
// Clean up the test database
0 commit comments