Skip to content

Commit

Permalink
fix: check error condition in dao_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Dara Hayes committed Feb 22, 2018
1 parent 9b0b49b commit ea454e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/dao/dao_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ func TestCreateEmptyClientID(t *testing.T) {
dbHandler := DatabaseHandler{}

err := dbHandler.Connect(config.DBHost, config.DBUser, config.DBPassword, config.DBName, config.SSLMode)

if err != nil {
t.Errorf("Connect() returned an error: %s", err.Error())
}

dbHandler.DoInitialSetup()

if err != nil {
Expand Down

0 comments on commit ea454e4

Please sign in to comment.