From 12452dd308df5d018840ecaad417d1806f05b18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammed=20Efe=20=C3=87etin?= Date: Tue, 28 Jun 2022 21:50:37 +0300 Subject: [PATCH 1/2] :broom: client: remove beta warning --- client.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client.go b/client.go index e5dd104367..0974b80f24 100644 --- a/client.go +++ b/client.go @@ -738,14 +738,9 @@ func (a *Agent) RetryIf(retryIf RetryIfFunc) *Agent { } /************************** End Agent Setting **************************/ -var warnOnce sync.Once // Bytes returns the status code, bytes body and errors of url. func (a *Agent) Bytes() (code int, body []byte, errs []error) { - warnOnce.Do(func() { - fmt.Println("[Warning] client is still in beta, API might change in the future!") - }) - defer a.release() if errs = append(errs, a.errs...); len(errs) > 0 { From d3d69081128921ba9ff8df7985cec4a0602c0041 Mon Sep 17 00:00:00 2001 From: wernerr Date: Wed, 29 Jun 2022 08:35:32 +0200 Subject: [PATCH 2/2] Stabilize the Test_Test_Timeout unittest --- app_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_test.go b/app_test.go index d1a40ea684..bbc816b14e 100644 --- a/app_test.go +++ b/app_test.go @@ -1299,7 +1299,7 @@ func Test_Test_Timeout(t *testing.T) { utils.AssertEqual(t, 200, resp.StatusCode, "Status code") app.Get("timeout", func(c *Ctx) error { - time.Sleep(55 * time.Millisecond) + time.Sleep(100 * time.Millisecond) return nil })