This commit is contained in:
Joshua Casey
2024-05-09 08:33:29 -05:00
committed by Ryan Richard
parent 32e4e0d835
commit 75f024cb19
2 changed files with 10 additions and 1 deletions

View File

@@ -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

View File

@@ -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()