Skip to content

Commit

Permalink
update test loop var name
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Mar 13, 2024
1 parent ed6ec0d commit 2467031
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions path_oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ func TestOIDC_AuthURL(t *testing.T) {
`scope=openid`,
}

for _, test := range expected {
matched, err := regexp.MatchString(test, authURL)
for _, testPattern := range expected {
matched, err := regexp.MatchString(testPattern, authURL)
if err != nil {
t.Fatal(err)
}
if !matched {
t.Fatalf("expected auth_url %q to match regex: %s", authURL, test)
t.Fatalf("expected auth_url %q to match regex: %s", authURL, testPattern)
}
}
}
Expand Down

0 comments on commit 2467031

Please sign in to comment.