Skip to content

Commit bd20dc6

Browse files
utkarshcmutorkelo
authored andcommitted
Fixed failing tests (grafana#6941)
1 parent 76f78c0 commit bd20dc6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/middleware/middleware_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
"github.com/go-macaron/session"
1111
"github.com/grafana/grafana/pkg/bus"
12+
l "github.com/grafana/grafana/pkg/login"
1213
m "github.com/grafana/grafana/pkg/models"
1314
"github.com/grafana/grafana/pkg/setting"
1415
"github.com/grafana/grafana/pkg/util"
@@ -58,6 +59,10 @@ func TestMiddlewareContext(t *testing.T) {
5859
return nil
5960
})
6061

62+
bus.AddHandler("test", func(loginUserQuery *l.LoginUserQuery) error {
63+
return nil
64+
})
65+
6166
bus.AddHandler("test", func(query *m.GetSignedInUserQuery) error {
6267
query.Result = &m.SignedInUser{OrgId: 2, UserId: 12}
6368
return nil

0 commit comments

Comments
 (0)