Allow the URI for the test DB to be set via env (#2954)
This commit is contained in:
committed by
Florent Vilmart
parent
e788d49af0
commit
4a5ed1095c
@@ -41,7 +41,7 @@ let stopDB = () => {};
|
||||
|
||||
if (process.env.PARSE_SERVER_TEST_DB === 'postgres') {
|
||||
databaseAdapter = new PostgresStorageAdapter({
|
||||
uri: postgresURI,
|
||||
uri: process.env.PARSE_SERVER_TEST_DATABASE_URI || postgresURI,
|
||||
collectionPrefix: 'test_',
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user