Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kripsy committed Nov 8, 2023
1 parent 659f346 commit 46cb1f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ func TestInitMyMiddleware(t *testing.T) {
}

func TestAuthInterceptor(t *testing.T) {
//nolint:goerr113
var ErrContext = errors.New("context error")
const (
loginMethod = "/pkg.api.gophkeeper.v1.GophKeeperService/Login"
registerMethod = "/pkg.api.gophkeeper.v1.GophKeeperService/Register"
Expand Down Expand Up @@ -124,7 +126,6 @@ func TestAuthInterceptor(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
var ErrContext = errors.New("context error")
testHandler := func(ctx context.Context, req interface{}) (interface{}, error) {
if tt.isProtected {
if ctx.Value(utils.USERNAMECONTEXTKEY) != userName {
Expand Down

0 comments on commit 46cb1f0

Please sign in to comment.