Skip to content

Commit

Permalink
Fix compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
dekiel committed Jan 9, 2025
1 parent 90ad4ee commit b143e0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/oidc/oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ var _ = Describe("OIDC", func() {
When("issuer with empty clientID is provided", func() {
It("should return an error", func() {
// Empty issuer clientID
trustedIssuers["https://fakedings.dev-gcp.nais.io/fake"].ClientID = ""
issuer := trustedIssuers["https://fakedings.dev-gcp.nais.io/fake"]
issuer.ClientID = ""
trustedIssuers["https://fakedings.dev-gcp.nais.io/fake"] = issuer

tokenProcessor, err := tioidc.NewTokenProcessor(logger, trustedIssuers, string(rawToken))
Expect(err).To(HaveOccurred())
Expand Down Expand Up @@ -466,4 +468,4 @@ var _ = Describe("OIDC", func() {
})
})
})
})
})

0 comments on commit b143e0d

Please sign in to comment.