Allow the URI for the test DB to be set via env (#2954)

This commit is contained in:
Kulshekhar Kabra
2016-10-28 18:41:07 +05:30
committed by Florent Vilmart
parent e788d49af0
commit 4a5ed1095c

View File

@@ -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 {