Skip to content

Commit

Permalink
chore: update container struct for snapshotting
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Jul 2, 2024
1 parent 2f825cc commit 9330f0b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,11 @@ func (c *PostgresContainer) execCommandsSQL(ctx context.Context, cmds ...string)
func (c *PostgresContainer) snapshotConnection(ctx context.Context) (*sql.Conn, func(), error) {
// Connect to the database "postgres" instead of the app one
c2 := &PostgresContainer{
Container: c.Container,
dbName: "postgres",
user: c.user,
password: c.password,
Container: c.Container,
dbName: "postgres",
user: c.user,
password: c.password,
sqlDriverName: c.sqlDriverName,
}

// Try to use an actual postgres connection, if the driver is loaded
Expand Down

0 comments on commit 9330f0b

Please sign in to comment.