Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Oct 28, 2024
1 parent 9f172ac commit ceaeeb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/client/sso/ceremony_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestCLICeremony(t *testing.T) {

// Read the clickable url from stderr and navigate to it
// using a simplified regexp for http://127.0.0.1:<port>/<uuid>
const clickableURLPattern = `^http://127.0.0.1:\d+/[0-9A-Fa-f-]+$`
const clickableURLPattern = `http://127.0.0.1:\d+/[0-9A-Fa-f-]+`
clickableURL := regexp.MustCompile(clickableURLPattern).FindString(stderr.String())
resp, err := http.Get(clickableURL)
require.NoError(t, err)
Expand Down Expand Up @@ -132,7 +132,6 @@ func TestCLICeremony_MFA(t *testing.T) {
t.Cleanup(mockIdPServer.Close)

ceremony := sso.NewCLIMFACeremony(rd)
defer rd.Close()

// Modify handle redirect to also browse to the clickable URL printed to stderr.
baseHandleRedirect := ceremony.HandleRedirect
Expand Down

0 comments on commit ceaeeb1

Please sign in to comment.