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 Oct 5, 2024
1 parent eeabd91 commit b0d678a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions flytestdlib/cache/in_memory_auto_refresh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import (
"testing"
"time"

"github.com/stretchr/testify/require"

"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 @@ -165,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 @@ -174,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 @@ -202,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 b0d678a

Please sign in to comment.