Change UserKey to UserContextKey

pull/2325/head
Michael Desa 2017-11-10 11:28:19 -05:00
parent fbff6cea76
commit 7123eea6dc
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ func TestService_NewOrganization(t *testing.T) {
}
ctx := tt.args.r.Context()
ctx = context.WithValue(ctx, UserKey, tt.args.user)
ctx = context.WithValue(ctx, UserContextKey, tt.args.user)
tt.args.r = tt.args.r.WithContext(ctx)
buf, _ := json.Marshal(tt.args.org)