@@ -162,8 +162,10 @@ func LoadUser(t *testing.T, ctx gocontext.Context, userID int64) {
|
||||
switch ctx := ctx.(type) {
|
||||
case *context.Context:
|
||||
ctx.Doer = doer
|
||||
ctx.IsSigned = true
|
||||
case *context.APIContext:
|
||||
ctx.Doer = doer
|
||||
ctx.IsSigned = true
|
||||
default:
|
||||
assert.FailNow(t, "context is not *context.Context or *context.APIContext")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user