Skip to content

Commit 1d7fa4e

Browse files
committed
fix lint error
1 parent 73669e4 commit 1d7fa4e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

service_provider_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,8 +1012,8 @@ func TestDestinationMatchesCurrentUrlButNotAcsUrlWithSignaturePresent(t *testing
10121012
err := xml.Unmarshal(test.IDPMetadata, &s.IDPMetadata)
10131013
assert.Check(t, err)
10141014

1015-
currentUrl := mustParseURL("https://15661444.ngrok.io/saml2/acs?current=true")
1016-
req := http.Request{PostForm: url.Values{}, URL: &currentUrl}
1015+
currentURL := mustParseURL("https://15661444.ngrok.io/saml2/acs?current=true")
1016+
req := http.Request{PostForm: url.Values{}, URL: &currentURL}
10171017
bytes, _ := overrideDestinationFromDocument(test.responseDom(t), "https://15661444.ngrok.io/saml2/acs?current=true").WriteToBytes()
10181018
req.PostForm.Set("SAMLResponse", base64.StdEncoding.EncodeToString(bytes))
10191019
assertion, err := s.ParseResponse(&req, []string{"id-9e61753d64e928af5a7a341a97f420c9"})
@@ -1036,8 +1036,8 @@ func TestDestinationMatchesAcsUrlButNotCurrentUrlWithSignaturePresent(t *testing
10361036
err := xml.Unmarshal(test.IDPMetadata, &s.IDPMetadata)
10371037
assert.Check(t, err)
10381038

1039-
currentUrl := mustParseURL("https://15661444.ngrok.io/saml2/acs?query=param")
1040-
req := http.Request{PostForm: url.Values{}, URL: &currentUrl}
1039+
currentURL := mustParseURL("https://15661444.ngrok.io/saml2/acs?query=param")
1040+
req := http.Request{PostForm: url.Values{}, URL: &currentURL}
10411041
bytes, _ := test.responseDom(t).WriteToBytes()
10421042
req.PostForm.Set("SAMLResponse", base64.StdEncoding.EncodeToString(bytes))
10431043
assertion, err := s.ParseResponse(&req, []string{"id-9e61753d64e928af5a7a341a97f420c9"})

0 commit comments

Comments
 (0)