Skip to content

Commit

Permalink
improve TestDBIsAlive
Browse files Browse the repository at this point in the history
  • Loading branch information
hisham waleed karam committed Oct 14, 2018
1 parent 5d488c9 commit 12a6bce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ func TestDBIsAlive(t *testing.T) {
connStr = "mysql://"
err := DBIsAlive("mysql", connStr)
assert.NotNil(t, err)
connStr = "postgresql://dummy:dummy@localhost:5438/dummy_db?sslmode=disable"
pingErr := DBIsAlive("postgres", connStr)
assert.NotNil(t, pingErr)
}

0 comments on commit 12a6bce

Please sign in to comment.