Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed May 16, 2024
1 parent a893f8e commit dc5d374
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/controller/post_signup_webauthn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ func TestPostSignupWebauthn(t *testing.T) { //nolint:maintidx
cmpopts.IgnoreFields(protocol.UserEntity{}, "ID"),
)

if !tc.config().WebauthnEnabled {
return
}

var gotSavedChallenge controller.WebauthnChallenge
for _, v := range c.Webauthn.Storage {
gotSavedChallenge = v
Expand Down
4 changes: 4 additions & 0 deletions go/controller/post_signup_webauthn_verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,10 @@ func TestPostSignupWebauthnVerify(t *testing.T) { //nolint:maintidx
hibp: tc.hibp,
})

if !tc.config().WebauthnEnabled {
return
}

c.Webauthn.Storage["zznztjvFVUM0E2p8ZV6shXEcw2f4tbz5RrfZWk4VPXI"] = touchIDWebauthnChallenge
c.Webauthn.Storage["zv9lPTJpOlgxzlrKWl-tG7AdxeUIbCwxqV8MFZZNRdA"] = windowsHelloWebauthnChallenge

Expand Down

0 comments on commit dc5d374

Please sign in to comment.