Skip to content

Commit

Permalink
fix: specify db config for test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Nov 6, 2024
1 parent f496d9d commit 30f0ead
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/service/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"runtime"
"testing"

"github.com/moov-io/base/database"
logging "github.com/moov-io/base/log"
"github.com/moov-io/irs/pkg/service"

Expand All @@ -27,6 +28,16 @@ func Test_Environment_Startup(t *testing.T) {

env := &service.Environment{
Logger: logging.NewLogger(log.NewLogfmtLogger(log.NewSyncWriter(os.Stderr))),
Config: &service.Config{
Database: database.DatabaseConfig{
DatabaseName: "irs",
MySQL: &database.MySQLConfig{
Address: "tcp(localhost:3306)",
User: "irs",
Password: "irs",
},
},
},
}

env, err := service.NewEnvironment(env)
Expand Down

0 comments on commit 30f0ead

Please sign in to comment.