Skip to content

Commit

Permalink
Deflake TestQueued on slower runners (#6077)
Browse files Browse the repository at this point in the history
## Motivation

On slower runners this test fails regularly because not enough clients in the simulated mesh are able to respond to the ping within a second. This slightly increases the queue size so fewer pings fail and hopefully the expected number of pings are able to succeed.
  • Loading branch information
fasmat committed Jun 26, 2024
1 parent 24694e5 commit c30ae58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func TestQueued(t *testing.T) {
WrapHandler(func(_ context.Context, msg []byte) ([]byte, error) {
return msg, nil
}),
WithQueueSize(total/4),
WithQueueSize(total/3),
WithRequestsPerInterval(50, time.Second),
WithMetrics(),
)
Expand Down

0 comments on commit c30ae58

Please sign in to comment.