Replace AddHandler with AddHandlerCtx in tests (#42585)
This commit is contained in:
1 parent
2e3fd9d659
commit
e6123bc3ef
37 files changed
+173
-162
No files matched your search
@@ -460,7 +460,7 @@ func TestDataSourceProxy_routeRule(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("When proxying a datasource that has OAuth token pass-through enabled", func(t *testing.T) {
|
||||
bus.AddHandler("test", func(query *models.GetAuthInfoQuery) error {
|
||||
bus.AddHandlerCtx("test", func(ctx context.Context, query *models.GetAuthInfoQuery) error {
|
||||
query.Result = &models.UserAuth{
|
||||
Id: 1,
|
||||
UserId: 1,
|
||||
|
||||
Reference in new issue
Block a user