From 75f024cb1928f2f6d0fea5dd5fafd5c89f504979 Mon Sep 17 00:00:00 2001 From: Joshua Casey Date: Thu, 9 May 2024 08:33:29 -0500 Subject: [PATCH] Fix lint --- internal/testutil/totp/totp.go | 6 +++++- internal/testutil/totp/totp_test.go | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/internal/testutil/totp/totp.go b/internal/testutil/totp/totp.go index 7951b07ce..7e2c153cf 100644 --- a/internal/testutil/totp/totp.go +++ b/internal/testutil/totp/totp.go @@ -1,3 +1,6 @@ +// Copyright 2024 the Pinniped contributors. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + package totp import ( @@ -6,11 +9,12 @@ import ( "encoding/base32" "encoding/binary" "fmt" - "github.com/stretchr/testify/require" "math" "strings" "testing" "time" + + "github.com/stretchr/testify/require" ) // This code is borrowed from diff --git a/internal/testutil/totp/totp_test.go b/internal/testutil/totp/totp_test.go index 5ff32bdf8..3fa0320b3 100644 --- a/internal/testutil/totp/totp_test.go +++ b/internal/testutil/totp/totp_test.go @@ -1,3 +1,6 @@ +// Copyright 2024 the Pinniped contributors. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + package totp import ( @@ -32,6 +35,8 @@ func TestGenerateOTPCode(t *testing.T) { } for _, test := range tests { + // This line can be removed when we upgrade golangci-lint to 1.58.1 and go1.22+ + test := test t.Run(test.name, func(t *testing.T) { t.Parallel()