Skip to content

Commit

Permalink
Fix lint, fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Oct 10, 2024
1 parent 73b4a7c commit 5e2c711
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/types/authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ package types
import (
"testing"

"github.com/gravitational/trace"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/gravitational/trace"

"github.com/gravitational/teleport/api/constants"
)

Expand Down Expand Up @@ -138,6 +137,9 @@ func TestNewAuthPreference_secondFactors(t *testing.T) {
SecondFactorType_SECOND_FACTOR_TYPE_WEBAUTHN,
SecondFactorType_SECOND_FACTOR_TYPE_SSO,
},
Webauthn: &Webauthn{
RPID: "localhost",
},
},
assertAuthPref: func(t *testing.T, authPref AuthPreference) {
assert.True(t, authPref.GetAllowPasswordless())
Expand Down

0 comments on commit 5e2c711

Please sign in to comment.