From fb3d2ca862cdcdcacd209b2e4bc785cb255d67c1 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 25 Apr 2017 13:34:00 +0200 Subject: [PATCH] read content of the http response --- testing/scenarios/feature_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/scenarios/feature_test.go b/testing/scenarios/feature_test.go index 9ed89f24..d84dae81 100644 --- a/testing/scenarios/feature_test.go +++ b/testing/scenarios/feature_test.go @@ -7,6 +7,8 @@ import ( "testing" "time" + "io/ioutil" + xproxy "golang.org/x/net/proxy" "v2ray.com/core" "v2ray.com/core/app/log" @@ -738,6 +740,8 @@ func TestDomainSniffing(t *testing.T) { resp, err := client.Get("https://www.github.com/") assert.Error(err).IsNil() assert.Int(resp.StatusCode).Equals(200) + + assert.Error(resp.Write(ioutil.Discard)).IsNil() } CloseAllServers()