switch to Result

This commit is contained in:
Dan Cech
2018-03-23 11:16:11 -04:00
parent d5dd1c9bca
commit a1b1d2fe80
6 changed files with 16 additions and 16 deletions

View File

@ -184,7 +184,7 @@ func TestMiddlewareContext(t *testing.T) {
})
login.UpsertUser = func(ctx *m.ReqContext, cmd *m.UpsertUserCommand) error {
cmd.User = &m.User{Id: 12}
cmd.Result = &m.User{Id: 12}
return nil
}
@ -215,7 +215,7 @@ func TestMiddlewareContext(t *testing.T) {
})
login.UpsertUser = func(ctx *m.ReqContext, cmd *m.UpsertUserCommand) error {
cmd.User = &m.User{Id: 33}
cmd.Result = &m.User{Id: 33}
return nil
}
@ -277,7 +277,7 @@ func TestMiddlewareContext(t *testing.T) {
})
login.UpsertUser = func(ctx *m.ReqContext, cmd *m.UpsertUserCommand) error {
cmd.User = &m.User{Id: 33}
cmd.Result = &m.User{Id: 33}
return nil
}