Skip to content

Commit

Permalink
testing: expose testing.TB in DBTest instead of full *testing.T
Browse files Browse the repository at this point in the history
Reduce the methods exposed by DBTest to the subset of testing.T exposed
in the testing.TB interface.
  • Loading branch information
dolmen committed Oct 17, 2023
1 parent 278a0b9 commit 44cfaba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func init() {
}

type DBTest struct {
*testing.T
testing.TB
db *sql.DB
}

Expand Down

0 comments on commit 44cfaba

Please sign in to comment.