Skip to content

Commit d1e9263

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. Follows govuk-forms/forms-runner#1588
1 parent c68fc38 commit d1e9263

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
@@ -58,6 +58,9 @@ development:
5858
test:
5959
<<: *default
6060
database: forms_admin_test
61+
username: postgres
62+
password: postgres
63+
host: localhost
6164
gssencmode: disable # needed to stop spring from segfaulting
6265

6366
# As with config/credentials.yml, you never want to store sensitive information,

0 commit comments

Comments
 (0)