From 3ae0ad46c875a13999fab43bf2aee48b458b4b6e 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gin_test.go b/gin_test.go index 9bb6be2e34..b6f272916a 100644 --- a/gin_test.go +++ b/gin_test.go @@ -12,6 +12,8 @@ import ( "net" "net/http" "reflect" + "runtime" + "strings" "testing" "time" @@ -96,6 +98,11 @@ func TestLoadHTMLGlob(t *testing.T) { } func TestLoadHTMLGlobOverH2c(t *testing.T) { + // go1.6's http client does not support h2c + if strings.Contains(runtime.Version(), "go1.6") { + return + } + td := setupHTMLGlob(t, DebugMode, false) http := http.Client{