From 010e2f951afc83c6b0f35746a74687344c9b63d3 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 23 Apr 2020 20:38:25 +0800 Subject: [PATCH] downgrade the required golang version from v1.13 to v1.11 --- net/ghttp/ghttp_unit_https_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ghttp/ghttp_unit_https_test.go b/net/ghttp/ghttp_unit_https_test.go index 0e5d5a506..511c43646 100644 --- a/net/ghttp/ghttp_unit_https_test.go +++ b/net/ghttp/ghttp_unit_https_test.go @@ -42,8 +42,8 @@ func Test_HTTPS_Basic(t *testing.T) { gtest.C(t, func(t *gtest.T) { c := g.Client() c.SetPrefix(fmt.Sprintf("http://127.0.0.1:%d", p)) - t.Assert(gstr.Trim(c.GetContent("/")), "Client sent an HTTP request to an HTTPS server.") - t.Assert(gstr.Trim(c.GetContent("/test")), "Client sent an HTTP request to an HTTPS server.") + t.AssertIN(gstr.Trim(c.GetContent("/")), g.Slice{"", "Client sent an HTTP request to an HTTPS server."}) + t.AssertIN(gstr.Trim(c.GetContent("/test")), g.Slice{"", "Client sent an HTTP request to an HTTPS server."}) }) // HTTPS gtest.C(t, func(t *gtest.T) {