From 03f5866ede1766d5dd05af46ef606681e3451c05 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Wed, 14 Dec 2016 15:30:22 -0800 Subject: [PATCH] cleanup etcd_certificates in /tmp Signed-off-by: Jess Frazelle --- pkg/storage/storagebackend/factory/tls_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/storage/storagebackend/factory/tls_test.go b/pkg/storage/storagebackend/factory/tls_test.go index 448cf16f377..23c76346c32 100644 --- a/pkg/storage/storagebackend/factory/tls_test.go +++ b/pkg/storage/storagebackend/factory/tls_test.go @@ -20,6 +20,7 @@ import ( "io/ioutil" "os" "path" + "path/filepath" "testing" "golang.org/x/net/context" @@ -35,6 +36,7 @@ import ( func TestTLSConnection(t *testing.T) { certFile, keyFile, caFile := configureTLSCerts(t) + defer os.RemoveAll(filepath.Dir(certFile)) tlsInfo := &transport.TLSInfo{ CertFile: certFile,