Skip to content

Commit 3f4b1a6

Browse files
authored
Accept PGDATABASE env var in test/init.js (#178)
1 parent 737496a commit 3f4b1a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/init.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ if (process.env.CI) {
2424
config = {
2525
host: process.env.PGHOST,
2626
port: process.env.PGPORT,
27-
database: process.env.POSTGRESQL_DATABASE || 'emptytest',
27+
database: process.env.POSTGRESQL_DATABASE ||
28+
process.env.PGDATABASE ||
29+
'emptytest',
2830
username: process.env.PGUSER,
2931
password: process.env.PGPASSWORD,
3032
};

0 commit comments

Comments
 (0)