Skip to content

Commit b6879f6

Browse files
chore: change postgres testing port to allow testing in local environment (#879)
1 parent 3b27fda commit b6879f6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ postgres :
22
image : postgres:9.4.5
33
container_name : forest_express_sequelize_postgres
44
ports :
5-
- "5436:5432"
5+
- "5437:5432"
66
environment:
77
- POSTGRES_DB=forest-express-sequelize-test
88
- POSTGRES_USER=forest

test/databases.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ConnectionManager {
4242
* @type {Record<string, ConnectionManager>}
4343
*/
4444
module.exports = {
45-
sequelizePostgres: new ConnectionManager('Postgresql 9.4', 'postgres://forest:secret@localhost:5436/forest-express-sequelize-test'),
45+
sequelizePostgres: new ConnectionManager('Postgresql 9.4', 'postgres://forest:secret@localhost:5437/forest-express-sequelize-test'),
4646
sequelizeMySQLMin: new ConnectionManager('MySQL 5.6', 'mysql://forest:secret@localhost:8998/forest-express-sequelize-test'),
4747
sequelizeMySQLMax: new ConnectionManager('MySQL 8.0', 'mysql://forest:secret@localhost:8999/forest-express-sequelize-test'),
4848
};

test/services/apimap-field-builder.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const databaseOptions = {
88
};
99

1010
const sequelize = new Sequelize(
11-
'postgres://forest:secret@localhost:5436/forest-express-sequelize-test',
11+
'postgres://forest:secret@localhost:5437/forest-express-sequelize-test',
1212
databaseOptions,
1313
);
1414

0 commit comments

Comments
 (0)