From d8d76bdc4f28d915e3d6d70d2c8ef264f8cbcc02 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Mon, 4 Mar 2019 14:47:39 +0100 Subject: [PATCH] Support Go < 1.8 Signed-off-by: Simon Pasquier --- config/http_config.go | 2 ++ config/http_config_test.go | 3 ++- config/tls_config_test.go | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/http_config.go b/config/http_config.go index ba7798ac..077ca046 100644 --- a/config/http_config.go +++ b/config/http_config.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build go1.8 + package config import ( diff --git a/config/http_config_test.go b/config/http_config_test.go index 840fd520..1928f2ad 100644 --- a/config/http_config_test.go +++ b/config/http_config_test.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// build go1.8 + package config import ( @@ -544,7 +546,6 @@ func TestBasicAuthPasswordFile(t *testing.T) { } func getCertificateBlobs(t *testing.T) map[string][]byte { - t.Helper() files := []string{ TLSCAChainPath, BarneyCertificatePath, diff --git a/config/tls_config_test.go b/config/tls_config_test.go index a33b072a..fadd2484 100644 --- a/config/tls_config_test.go +++ b/config/tls_config_test.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// build go1.8 + package config import (