Skip to content

Commit

Permalink
better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiangreco committed Dec 2, 2024
1 parent fc3ef8f commit b3a313e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func TestQuerySample(t *testing.T) {
func TestQuerySampleSQLDriverErrors(t *testing.T) {
defer goleak.VerifyNone(t)

t.Run("QueryContext() fail", func(t *testing.T) {
t.Run("unrecoverable sql error", func(t *testing.T) {
db, mock, err := sqlmock.New(sqlmock.QueryMatcherOption(sqlmock.QueryMatcherEqual))
require.NoError(t, err)
defer db.Close()
Expand Down Expand Up @@ -273,7 +273,7 @@ func TestQuerySampleSQLDriverErrors(t *testing.T) {
require.NoError(t, err)
})

t.Run("Scan() fail", func(t *testing.T) {
t.Run("recoverable sql error in result set", func(t *testing.T) {
db, mock, err := sqlmock.New(sqlmock.QueryMatcherOption(sqlmock.QueryMatcherEqual))
require.NoError(t, err)
defer db.Close()
Expand Down

0 comments on commit b3a313e

Please sign in to comment.