🧹 client: remove beta warning (#1951)

* 🧹 client: remove beta warning

* Stabilize the Test_Test_Timeout unittest

Co-authored-by: wernerr <rene@gofiber.io>
pull/1964/head
M. Efe Çetin 2022-07-04 08:50:37 +03:00 committed by GitHub
parent b6818c20be
commit dac929fdee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -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
})

View File

@ -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 {