mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Comment out calls to httptest.Server.Close() to work around
https://github.com/golang/go/issues/12262 . See #19254 for more details. This change should be reverted when we upgrade to Go 1.6.
This commit is contained in:
parent
2f23ba6849
commit
72654d347c
@ -218,7 +218,8 @@ func TestOIDCDiscoveryNoKeyEndpoint(t *testing.T) {
|
|||||||
t.Fatalf("Cannot load cert/key pair: %v", err)
|
t.Fatalf("Cannot load cert/key pair: %v", err)
|
||||||
}
|
}
|
||||||
srv.StartTLS()
|
srv.StartTLS()
|
||||||
defer srv.Close()
|
// TODO: Uncomment when fix #19254
|
||||||
|
// defer srv.Close()
|
||||||
|
|
||||||
op.pcfg = oidc.ProviderConfig{
|
op.pcfg = oidc.ProviderConfig{
|
||||||
Issuer: srv.URL,
|
Issuer: srv.URL,
|
||||||
@ -274,7 +275,8 @@ func TestOIDCDiscoverySecureConnection(t *testing.T) {
|
|||||||
t.Fatalf("Cannot load cert/key pair: %v", err)
|
t.Fatalf("Cannot load cert/key pair: %v", err)
|
||||||
}
|
}
|
||||||
tlsSrv.StartTLS()
|
tlsSrv.StartTLS()
|
||||||
defer tlsSrv.Close()
|
// TODO: Uncomment when fix #19254
|
||||||
|
// defer tlsSrv.Close()
|
||||||
|
|
||||||
op.pcfg = oidc.ProviderConfig{
|
op.pcfg = oidc.ProviderConfig{
|
||||||
Issuer: tlsSrv.URL,
|
Issuer: tlsSrv.URL,
|
||||||
@ -309,7 +311,8 @@ func TestOIDCAuthentication(t *testing.T) {
|
|||||||
t.Fatalf("Cannot load cert/key pair: %v", err)
|
t.Fatalf("Cannot load cert/key pair: %v", err)
|
||||||
}
|
}
|
||||||
srv.StartTLS()
|
srv.StartTLS()
|
||||||
defer srv.Close()
|
// TODO: Uncomment when fix #19254
|
||||||
|
// defer srv.Close()
|
||||||
|
|
||||||
op.pcfg = oidc.ProviderConfig{
|
op.pcfg = oidc.ProviderConfig{
|
||||||
Issuer: srv.URL,
|
Issuer: srv.URL,
|
||||||
|
Loading…
Reference in New Issue
Block a user