Skip to content

Commit

Permalink
Capture listen error on mockoidc
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Font committed Sep 19, 2022
1 parent 9c58395 commit 1c267f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integration_oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ func (s *IntegrationOIDCTestSuite) SetupSuite() {

s.Suite.T().Log("Setting up mock OIDC")
oidc, _ := mockoidc.NewServer(nil)
ln, _ := net.Listen("tcp", fmt.Sprintf("%s:0", s.network.Network.IPAM.Config[0].Gateway))
ln, err := net.Listen("tcp", fmt.Sprintf("%s:0", s.network.Network.IPAM.Config[0].Gateway))
if err != nil {
s.FailNow(fmt.Sprintf("Could not listen on port: %s", err), "")
}
oidc.Start(ln, nil)
s.oidc = oidc

Expand Down

0 comments on commit 1c267f7

Please sign in to comment.