chore: pkg imported more than once (#17444)

This commit is contained in:
guangwu
2023-06-27 00:21:29 +08:00
committed by GitHub
parent 21fbe88e1f
commit 87b6fb37d6
3 changed files with 11 additions and 14 deletions

View File

@@ -31,7 +31,6 @@ import (
"testing"
"time"
jwtg "github.com/golang-jwt/jwt/v4"
jwtgo "github.com/golang-jwt/jwt/v4"
"github.com/minio/minio/internal/arn"
"github.com/minio/minio/internal/config"
@@ -260,7 +259,7 @@ func TestExpCorrect(t *testing.T) {
t.Error(err)
}
// Build simple toke with updated expiration claim
token := jwtg.NewWithClaims(jwtg.SigningMethodHS256, claimsMap)
token := jwtgo.NewWithClaims(jwtgo.SigningMethodHS256, claimsMap)
tokenString, err := token.SignedString(signKey)
if err != nil {
t.Error(err)