Skip to content

Commit 3ad5c8f

Browse files
committed
don't panic in test
1 parent 6d7a1fb commit 3ad5c8f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sqlmock_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ import (
1010

1111
func TestSQLMock(t *testing.T) {
1212
db, mock, err := sqlmock.New()
13-
if err != nil {
14-
panic(err)
15-
}
13+
require.NoError(t, err)
14+
1615
conn := &Connection{
1716
DB: db,
1817
EventReceiver: &NullEventReceiver{},

0 commit comments

Comments
 (0)