mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-26 22:25:52 -05:00
Capture listen error on mockoidc
This commit is contained in:
parent
9c58395bb3
commit
1c267f72e0
@ -110,7 +110,10 @@ func (s *IntegrationOIDCTestSuite) SetupSuite() {
|
|||||||
|
|
||||||
s.Suite.T().Log("Setting up mock OIDC")
|
s.Suite.T().Log("Setting up mock OIDC")
|
||||||
oidc, _ := mockoidc.NewServer(nil)
|
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)
|
oidc.Start(ln, nil)
|
||||||
s.oidc = oidc
|
s.oidc = oidc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user