Skip to content

Commit 41b647f

Browse files
committed
fix test
Signed-off-by: Anton Troshin <[email protected]>
1 parent ab2a53b commit 41b647f

File tree

1 file changed

+3
-3
lines changed
  • tests/integration/suite/daprd/subscriptions/stream

1 file changed

+3
-3
lines changed

tests/integration/suite/daprd/subscriptions/stream/multi.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ func (m *multi) Run(t *testing.T, ctx context.Context) {
255255
require.NoError(t, err)
256256
}
257257

258-
assert.Eventually(t, func() bool {
259-
wg.Wait()
260-
return receivedTotal.Load() == int32(messagesToSend*len(subscribers)) //nolint:gosec
258+
wg.Wait()
259+
assert.EventuallyWithT(t, func(c *assert.CollectT) {
260+
assert.Equal(c, int32(messagesToSend*len(subscribers)), receivedTotal.Load()) //nolint:gosec
261261
}, time.Second*10, time.Millisecond*10)
262262
}

0 commit comments

Comments
 (0)