Skip to content

Commit

Permalink
role: Resolves broken role test
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas committed May 20, 2018
1 parent e0acd67 commit b6c7f9c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions role/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ func TestMain(m *testing.M) {

flag.Parse()
if !testing.Short() {
connectToPostgres()
connectToMySQL()
dockertest.Parallel([]func(){
connectToPostgres,
connectToMySQL,
})
}

runner.Exit(m.Run())
Expand All @@ -65,7 +67,7 @@ func connectToMySQL() {
}

func connectToPostgres() {
db, err := dockertest.ConnectToTestMySQL()
db, err := dockertest.ConnectToTestPostgreSQL()
if err != nil {
panic(err)
}
Expand Down

0 comments on commit b6c7f9c

Please sign in to comment.