Skip to content

Commit 3f6cf08

Browse files
committed
add logger in DB
1 parent 0aa2387 commit 3f6cf08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gofr/datasource/sql/db_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func getDB(t *testing.T) (*DB, sqlmock.Sqlmock) {
2222
t.Fatalf("an error '%s' was not expected when opening a stub database connection", err)
2323
}
2424

25-
return &DB{mockDB, nil}, mock
25+
return &DB{mockDB, testutil.NewMockLogger(testutil.INFOLOG)}, mock
2626
}
2727

2828
func TestDB_SelectSingleColumnFromIntToString(t *testing.T) {

0 commit comments

Comments
 (0)