From 1d5b09aa6bc129da1db550d000c5e54884e3e40e Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Mon, 2 Sep 2024 12:44:43 +0000 Subject: [PATCH] fix(cts): add waitForTask helpers tests [skip-bc] (generated) https://github.com/algolia/api-clients-automation/pull/3618 Co-authored-by: algolia-bot Co-authored-by: Pierre Millot --- algolia/search/api_search.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/algolia/search/api_search.go b/algolia/search/api_search.go index afe88a2d3..4e5b7012a 100644 --- a/algolia/search/api_search.go +++ b/algolia/search/api_search.go @@ -9385,7 +9385,7 @@ func (c *APIClient) WaitForTask( taskID int64, opts ...IterableOption, ) (*GetTaskResponse, error) { - // provide a defalut timeout function + // provide a default timeout function opts = append([]IterableOption{WithTimeout(func(count int) time.Duration { return time.Duration(min(200*count, 5000)) * time.Millisecond }), WithMaxRetries(50)}, opts...) @@ -9419,7 +9419,7 @@ func (c *APIClient) WaitForAppTask( taskID int64, opts ...IterableOption, ) (*GetTaskResponse, error) { - // provide a defalut timeout function + // provide a default timeout function opts = append([]IterableOption{WithTimeout(func(count int) time.Duration { return time.Duration(min(200*count, 5000)) * time.Millisecond }), WithMaxRetries(50)}, opts...) @@ -9552,7 +9552,7 @@ func (c *APIClient) WaitForApiKey( return nil, &errs.WaitKeyOperationError{} } - // provide a defalut timeout function + // provide a default timeout function opts = append([]WaitForApiKeyOption{WithTimeout(func(count int) time.Duration { return time.Duration(min(200*count, 5000)) * time.Millisecond }), WithMaxRetries(50)}, opts...)