Skip to content

Commit dac929f

Browse files
efectnReneWerner87
andauthored
🧹 client: remove beta warning (#1951)
* 🧹 client: remove beta warning * Stabilize the Test_Test_Timeout unittest Co-authored-by: wernerr <rene@gofiber.io>
1 parent b6818c2 commit dac929f

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

app_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ func Test_Test_Timeout(t *testing.T) {
12991299
utils.AssertEqual(t, 200, resp.StatusCode, "Status code")
13001300

13011301
app.Get("timeout", func(c *Ctx) error {
1302-
time.Sleep(55 * time.Millisecond)
1302+
time.Sleep(100 * time.Millisecond)
13031303
return nil
13041304
})
13051305

client.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -738,14 +738,9 @@ func (a *Agent) RetryIf(retryIf RetryIfFunc) *Agent {
738738
}
739739

740740
/************************** End Agent Setting **************************/
741-
var warnOnce sync.Once
742741

743742
// Bytes returns the status code, bytes body and errors of url.
744743
func (a *Agent) Bytes() (code int, body []byte, errs []error) {
745-
warnOnce.Do(func() {
746-
fmt.Println("[Warning] client is still in beta, API might change in the future!")
747-
})
748-
749744
defer a.release()
750745

751746
if errs = append(errs, a.errs...); len(errs) > 0 {

0 commit comments

Comments
 (0)