Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pgtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ type PG struct {
User string
Name string

DSN string

persistent bool

stderr io.ReadCloser
Expand Down Expand Up @@ -224,6 +226,7 @@ func start(config *PGConfig) (*PG, error) {
Host: sockDir,
User: pgUser(isRoot),
Name: "test",
DSN: dsn,

persistent: config.IsPersistent,

Expand Down
1 change: 1 addition & 0 deletions pgtest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func TestPostgreSQLWithConfig(t *testing.T) {

assert.NotEmpty(pg.Host)
assert.NotEmpty(pg.Name)
assert.NotEmpty(pg.DSN)

err = pg.Stop()
assert.NoError(err)
Expand Down