mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-05 13:07:14 +00:00
Fix lint
This commit is contained in:
committed by
Ryan Richard
parent
32e4e0d835
commit
75f024cb19
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user