Skip to content

Commit

Permalink
fix wg panic test
Browse files Browse the repository at this point in the history
  • Loading branch information
faec committed Feb 29, 2024
1 parent 461f8e1 commit 166b6bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbeat/publisher/queue/memqueue/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func TestProducerClosePreservesEventCount(t *testing.T) {

q := NewQueue(nil, nil,
Settings{
Events: 4, // Queue size
Events: 3, // Queue size
MaxGetRequest: 2,
FlushTimeout: 10 * time.Millisecond,
}, 1)
Expand Down Expand Up @@ -200,7 +200,7 @@ func TestProducerClosePreservesEventCount(t *testing.T) {
// However, the test is written to produce false negatives only:
// - If this test fails, it _always_ indicates a bug.
// - If there is a bug, this test will _often_ fail.
time.Sleep(10 * time.Millisecond)
time.Sleep(20 * time.Millisecond)

// Cancel the producer, then read and acknowledge two batches. If the
// Publish calls and the queue code are working, activeEvents should
Expand Down

0 comments on commit 166b6bd

Please sign in to comment.