Skip to content

Commit

Permalink
fixup! Removed pq dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <[email protected]>
  • Loading branch information
alexandrosfilios committed Dec 9, 2024
1 parent 26162f1 commit e171e01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions platform/view/services/db/driver/sql/postgres/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func defaultConfigWithPort(node string, port int) *ContainerConfig {
Container: fmt.Sprintf("fsc-postgres-%s", node),
Config: &Config{
DBName: "tokendb",
User: "postgres",
User: "pgx_md5",
Pass: "example",
Host: "localhost",
Port: port,
Expand Down Expand Up @@ -138,7 +138,6 @@ func startPostgresWithLogger(c ContainerConfig, t Logger, printLogs bool) (func(
"POSTGRES_DB=" + c.DBName,
"POSTGRES_USER=" + c.User,
"POSTGRES_PASSWORD=" + c.Pass,
"POSTGRES_INITDB_ARGS=\"--auth-host=scram-sha-256 --auth-local=scram-sha-256\"",
},
Hostname: c.Container,
Image: c.Image,
Expand Down Expand Up @@ -232,7 +231,7 @@ func StartPostgres(t Logger, printLogs bool) (func(), string, error) {
Container: getEnv("POSTGRES_CONTAINER", "fsc-postgres"),
Config: &Config{
DBName: getEnv("POSTGRES_DB", "testdb"),
User: getEnv("POSTGRES_USER", "postgres"),
User: getEnv("POSTGRES_USER", "pgx_md5"),
Pass: getEnv("POSTGRES_PASSWORD", "example"),
Host: getEnv("POSTGRES_HOST", "localhost"),
Port: p,
Expand Down

0 comments on commit e171e01

Please sign in to comment.