Skip to content

Commit 7d6c461

Browse files
committed
clarify comment
Signed-off-by: Etai Lev Ran <[email protected]>
1 parent b6d0ace commit 7d6c461

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/epp/datalayer/collector_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ func TestCollectorCollectsOnTicks(t *testing.T) {
103103
ticker.Tick()
104104
ticker.Tick()
105105

106-
// Use Eventually for async processing, but with much shorter timeout
106+
// use Eventually for async processing
107107
require.Eventually(t, func() bool {
108108
return atomic.LoadInt64(&source.callCount) == 2
109-
}, 50*time.Millisecond, 2*time.Millisecond, "expected 2 collections")
109+
}, 1*time.Second, 2*time.Millisecond, "expected 2 collections")
110110

111111
got := atomic.LoadInt64(&source.callCount)
112112
want := int64(2)

0 commit comments

Comments
 (0)