Skip to content

Commit

Permalink
database: use 127.0.0.1 instead of localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Sep 30, 2024
1 parent a4e8a48 commit b91310f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions database/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestPostgres_Basic(t *testing.T) {
config := database.DatabaseConfig{
DatabaseName: "moov",
Postgres: &database.PostgresConfig{
Address: "localhost:5432",
Address: "127.0.0.1:5432",
User: "moov",
Password: "moov",
Connections: database.ConnectionsConfig{
Expand All @@ -55,7 +55,7 @@ func TestPostgres_TLS(t *testing.T) {
config := database.DatabaseConfig{
DatabaseName: "moov",
Postgres: &database.PostgresConfig{
Address: "localhost:5432",
Address: "127.0.0.1:5432",
User: "moov",
Password: "moov",
TLS: &database.PostgresTLSConfig{
Expand Down Expand Up @@ -136,7 +136,7 @@ func Test_Postgres_Embedded_Migration(t *testing.T) {
config := database.DatabaseConfig{
DatabaseName: "postgres" + base.ID(),
Postgres: &database.PostgresConfig{
Address: "localhost:5432",
Address: "127.0.0.1:5432",
User: "moov",
Password: "moov",
},
Expand Down Expand Up @@ -188,7 +188,7 @@ func Test_Postgres_UniqueViolation(t *testing.T) {
config := database.DatabaseConfig{
DatabaseName: "postgres" + base.ID(),
Postgres: &database.PostgresConfig{
Address: "localhost:5432",
Address: "127.0.0.1:5432",
User: "moov",
Password: "moov",
},
Expand Down

0 comments on commit b91310f

Please sign in to comment.