Skip to content

Commit

Permalink
rangefeed: deflake TestBudgetReleaseOnOneStreamError
Browse files Browse the repository at this point in the history
The test could fail with `REASON_SLOW_CONSUMER` if the registration
goroutine did not drain the queue in time (1 ms). Increase the timeout.

Epic: none
Release note: None
  • Loading branch information
erikgrinaker committed Aug 11, 2023
1 parent 6fa90e9 commit e35eb38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kv/kvserver/rangefeed/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ func TestBudgetReleaseOnOneStreamError(t *testing.T) {
PushTxnsInterval: pushTxnInterval,
PushTxnsAge: pushTxnAge,
EventChanCap: channelCapacity,
EventChanTimeout: time.Millisecond,
EventChanTimeout: 100 * time.Millisecond, // enough time for registration to process events
MemBudget: fb,
Metrics: NewMetrics(),
})
Expand Down

0 comments on commit e35eb38

Please sign in to comment.