From cba13f47c26402d34da77766c28054d536a7a831 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Thu, 1 Feb 2024 02:55:00 -0600 Subject: [PATCH] chore(util): Remove test which occasionally failed --- internal/util/retry_test.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/internal/util/retry_test.go b/internal/util/retry_test.go index 06047a7..a51df59 100644 --- a/internal/util/retry_test.go +++ b/internal/util/retry_test.go @@ -73,17 +73,4 @@ func TestRetry(t *testing.T) { assert.Equal(t, 5, runs) assert.Greater(t, time.Since(start), 15*time.Millisecond) }) - - t.Run("cancel context", func(t *testing.T) { - var runs int - ctx, cancel := context.WithCancel(context.Background()) - cancel() - if err := Retry(ctx, 10, 0, func(try uint) error { - runs += 1 - return errors.New("test") - }); !assert.Error(t, err) { - return - } - assert.Equal(t, 1, runs) - }) }