From f6690a34a482485f85c0b0ba41e3cadb1a2fcbb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E6=B5=B7=E6=B6=9B?= Date: Wed, 20 Jun 2018 11:18:39 +0800 Subject: [PATCH] skip test for go1.6 --- gin_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gin_test.go b/gin_test.go index 9bb6be2e34..a5a51f0d09 100644 --- a/gin_test.go +++ b/gin_test.go @@ -96,6 +96,11 @@ func TestLoadHTMLGlob(t *testing.T) { } func TestLoadHTMLGlobOverH2c(t *testing.T) { + // go1.6's http client does not support h2c + if strings.Contains(v, "go1.6") { + return + } + td := setupHTMLGlob(t, DebugMode, false) http := http.Client{