Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
luky116 committed Nov 19, 2022
1 parent dae38e4 commit bcfe77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/datasource/sql/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func initMockXaConnector(t *testing.T, ctrl *gomock.Controller, db *sql.DB, f in
if v.Kind() == reflect.Ptr {
v = v.Elem()
}
reflectx.SetUnexportedField(v.FieldByName("db"), f(t, ctrl))
reflectx.SetUnexportedField(v.FieldByName("target"), f(t, ctrl))

return fieldVal.(driver.Connector)
}
Expand Down

0 comments on commit bcfe77a

Please sign in to comment.