fix fasthttpbin 升级
This commit is contained in:
parent
469276cdaa
commit
9d998a1964
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user