From 9d998a19643c2d3002b16b45164a9ff6bb5e0a41 Mon Sep 17 00:00:00 2001 From: huangsimin Date: Wed, 4 Sep 2019 10:16:33 +0800 Subject: [PATCH] =?UTF-8?q?fix=20fasthttpbin=20=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- session_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/session_test.go b/session_test.go index d4baa1f..c77488a 100644 --- a/session_test.go +++ b/session_test.go @@ -45,7 +45,7 @@ func TestSession_Get(t *testing.T) { if err != nil { t.Error(err) } - if len(resp.Content()) <= 200 { + if len(resp.Content()) <= 150 { t.Error(resp.Content()) } }) @@ -285,7 +285,7 @@ func TestSession_SetConfig(t *testing.T) { }{ { name: "test timeout", - args: args{typeConfig: CRequestTimeout, values: 0.01}, + args: args{typeConfig: CRequestTimeout, values: 0.0001}, wantErr: true, }, @@ -305,7 +305,7 @@ func TestSession_SetConfig(t *testing.T) { t.Run(tt.name, func(t *testing.T) { ses := NewSession() ses.SetConfig(tt.args.typeConfig, tt.args.values) - _, err := ses.Get("https://httpbin.org/get").Execute() + _, err := ses.Get("http://httpbin.org/get").Execute() if (err != nil) != tt.wantErr { t.Errorf("Metchod error = %v", err)