Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Parraga <sovietaced@gmail.com>
  • Loading branch information
Sovietaced committed Jan 15, 2025
1 parent be679c4 commit bb1f87f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions flytestdlib/cache/in_memory_auto_refresh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"k8s.io/client-go/util/workqueue"
testingclock "k8s.io/utils/clock/testing"

Expand Down Expand Up @@ -163,7 +162,7 @@ func TestCacheFour(t *testing.T) {
// If the cache tries to enqueue the item, a panic will be thrown.
assert.Eventually(t, func() bool { return cache.enqueueCount.Load() > enqueueCount }, time.Second, time.Millisecond)
// Should not enqueue
require.Equal(t, syncCount, cache.syncCount.Load())
assert.Equal(t, syncCount, cache.syncCount.Load())

syncCount = cache.syncCount.Load()
enqueueCount = cache.enqueueCount.Load()
Expand All @@ -172,7 +171,7 @@ func TestCacheFour(t *testing.T) {
// If the cache tries to enqueue the item, a panic will be thrown.
assert.Eventually(t, func() bool { return cache.enqueueCount.Load() > enqueueCount }, time.Second, time.Millisecond)
// Should not enqueue
require.Equal(t, syncCount, cache.syncCount.Load())
assert.Equal(t, syncCount, cache.syncCount.Load())

cancel()
})
Expand Down Expand Up @@ -200,7 +199,7 @@ func TestCacheFour(t *testing.T) {
// If the cache tries to enqueue the item, a panic will be thrown.
assert.Eventually(t, func() bool { return cache.enqueueCount.Load() > enqueueCount }, time.Second, time.Millisecond)
// Should not enqueue
require.Equal(t, syncCount, cache.syncCount.Load())
assert.Equal(t, syncCount, cache.syncCount.Load())

err = cache.DeleteDelayed(itemID)
assert.NoError(t, err)
Expand Down

0 comments on commit bb1f87f

Please sign in to comment.