From c0cda8535eddeab5bcf1e993a4f83aca644dbb9f Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Thu, 9 Jun 2016 13:15:59 -0700 Subject: [PATCH] oidc: fix test nil pointer --- plugin/pkg/client/auth/oidc/oidc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/pkg/client/auth/oidc/oidc_test.go b/plugin/pkg/client/auth/oidc/oidc_test.go index 30d8e4ab208..2f9006a8b17 100644 --- a/plugin/pkg/client/auth/oidc/oidc_test.go +++ b/plugin/pkg/client/auth/oidc/oidc_test.go @@ -48,11 +48,11 @@ func TestNewOIDCAuthProvider(t *testing.T) { oidctesting.GenerateSelfSignedCert(t, "127.0.0.1", cert, key) op := oidctesting.NewOIDCProvider(t) srv, err := op.ServeTLSWithKeyPair(cert, key) - op.AddMinimalProviderConfig(srv) if err != nil { t.Fatalf("Cannot start server %v", err) } defer srv.Close() + op.AddMinimalProviderConfig(srv) certData, err := ioutil.ReadFile(cert) if err != nil {