linting and formatting
This commit is contained in:
@@ -16,11 +16,10 @@ import (
|
||||
)
|
||||
|
||||
type TestDatabase struct {
|
||||
Db *sql.DB
|
||||
Db *sql.DB
|
||||
container testcontainers.Container
|
||||
}
|
||||
|
||||
|
||||
func NewTestDatabase() *TestDatabase {
|
||||
ctx := context.Background()
|
||||
// create container
|
||||
@@ -33,7 +32,7 @@ func NewTestDatabase() *TestDatabase {
|
||||
wait.ForLog("database system is ready to accept connections").
|
||||
WithOccurrence(2).
|
||||
WithStartupTimeout(5*time.Second)),
|
||||
)
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create postgres container, %v\n", err)
|
||||
@@ -53,7 +52,7 @@ func NewTestDatabase() *TestDatabase {
|
||||
migrate.Migrate(db)
|
||||
|
||||
return &TestDatabase{
|
||||
Db: db,
|
||||
Db: db,
|
||||
container: postgresContainer,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user