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:
Maciej Szulik 2016-02-11 16:16:11 +01:00
parent 2f23ba6849
commit 72654d347c

View File

@ -218,7 +218,8 @@ func TestOIDCDiscoveryNoKeyEndpoint(t *testing.T) {
t.Fatalf("Cannot load cert/key pair: %v", err)
}
srv.StartTLS()
defer srv.Close()
// TODO: Uncomment when fix #19254
// defer srv.Close()
op.pcfg = oidc.ProviderConfig{
Issuer: srv.URL,
@ -274,7 +275,8 @@ func TestOIDCDiscoverySecureConnection(t *testing.T) {
t.Fatalf("Cannot load cert/key pair: %v", err)
}
tlsSrv.StartTLS()
defer tlsSrv.Close()
// TODO: Uncomment when fix #19254
// defer tlsSrv.Close()
op.pcfg = oidc.ProviderConfig{
Issuer: tlsSrv.URL,
@ -309,7 +311,8 @@ func TestOIDCAuthentication(t *testing.T) {
t.Fatalf("Cannot load cert/key pair: %v", err)
}
srv.StartTLS()
defer srv.Close()
// TODO: Uncomment when fix #19254
// defer srv.Close()
op.pcfg = oidc.ProviderConfig{
Issuer: srv.URL,