Skip to content

Commit 3a0f64d

Browse files
committed
Use localhost for test database connections
This fixes an issue if using psql container in docker and running the tests on the host machine. By specifying "localhost" this ensures the connection is done via TCP rather than sockets, which is needed to connect to the container.
1 parent c193d87 commit 3a0f64d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/database.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ test:
4040
primary: &primary_test
4141
<<: *default
4242
database: forms_runner_test
43+
username: postgres
44+
password: postgres
45+
host: localhost
4346
queue:
4447
<<: *primary_test
4548
database: forms_runner_test_queue

0 commit comments

Comments
 (0)