Skip to content

Commit 78a1b4f

Browse files
committed
on the password, and do not pass env var
1 parent f803d3e commit 78a1b4f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/chaos-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ jobs:
6868
env:
6969
PGPASSWORD: a!b@c$d()e*_,/:;=?@ff[]22
7070
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71-
DBOS_SYSTEM_DATABASE_URL: "postgres://postgres:a!b@c$d()e*_,/:;=?@ff[]22@localhost:5432/dbos?sslmode=disable"
7271

7372
name: Run Chaos Tests
7473

chaos_tests/chaos_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ func setupDBOS(t *testing.T) dbos.DBOSContext {
138138

139139
databaseURL := os.Getenv("DBOS_SYSTEM_DATABASE_URL")
140140
if databaseURL == "" {
141-
password := os.Getenv("PGPASSWORD")
141+
password := url.QueryEscape(os.Getenv("PGPASSWORD"))
142142
if password == "" {
143143
password = "dbos"
144144
}
145145
databaseURL = fmt.Sprintf("postgres://postgres:%s@localhost:5432/dbos?sslmode=disable", url.QueryEscape(password))
146146
}
147147

148148
// Clean up the test database
149-
parsedURL, err := pgx.ParseConfig(url.QueryEscape(databaseURL))
149+
parsedURL, err := pgx.ParseConfig(databaseURL)
150150
require.NoError(t, err)
151151

152152
dbName := parsedURL.Database

0 commit comments

Comments
 (0)