Skip to content

Commit

Permalink
Update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 3, 2024
1 parent 3dd56c4 commit 147a0b4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions integration_tests/postgres/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"cmp"
"database/sql"
"encoding/json"
"errors"
Expand All @@ -26,13 +27,8 @@ func main() {
}
slog.SetDefault(slog.New(tint.NewHandler(os.Stderr, &tint.Options{})))

var pgHost string = os.Getenv("PG_HOST")
if pgHost == "" {
pgHost = "localhost"
}

var pgConfig = config.PostgreSQL{
Host: pgHost,
pgConfig := config.PostgreSQL{
Host: cmp.Or(os.Getenv("PG_HOST"), "localhost"),
Port: 5432,
Username: "postgres",
Password: "postgres",
Expand Down Expand Up @@ -80,6 +76,8 @@ CREATE TABLE %s (
c_bigint bigint,
c_bigserial bigserial,
c_bit bit,
c_bit1 bit(1),
c_bit5 bit(5),
c_boolean boolean,
-- c_box box,
c_bytea bytea,
Expand Down

0 comments on commit 147a0b4

Please sign in to comment.