change context keys and fix tests

This commit is contained in:
Livio Amstutz
2020-03-30 11:52:08 +02:00
parent 96b1817d62
commit 40e4f69ca3
4 changed files with 12 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ import (
)
func getTestCtx(userID, orgID string) context.Context {
return context.WithValue(context.Background(), CtxKeyData{}, CtxData{UserID: userID, OrgID: orgID})
return context.WithValue(context.Background(), dataKey, CtxData{UserID: userID, OrgID: orgID})
}
type testVerifier struct {