Skip to content

Commit

Permalink
fix(telemetry)_: fix flaky cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
adklempner committed Sep 27, 2024
1 parent 7a23ac5 commit 632d7e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions telemetry/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,14 @@ func TestRetryCacheCleanup(t *testing.T) {

time.Sleep(110 * time.Millisecond)

require.Equal(t, 6000, len(client.telemetryRetryCache))
cacheBefore := len(client.telemetryRetryCache)

sendEnvelope(ctx, client)

time.Sleep(210 * time.Millisecond)

require.Equal(t, 5001, len(client.telemetryRetryCache))
cacheAfter := len(client.telemetryRetryCache)
require.Greater(t, cacheBefore, cacheAfter)
}
func setDefaultConfig(config *wakuv2.Config, lightMode bool) {
config.ClusterID = 16
Expand Down

0 comments on commit 632d7e9

Please sign in to comment.