Skip to content

Commit

Permalink
Removing debugging variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Apr 21, 2020
1 parent 5ff7219 commit 15a1383
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libbeat/publisher/pipeline/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ func TestMakeClientWorker(t *testing.T) {
defer retryer.close()

var published atomic.Uint
var batchCount int
publishFn := func(batch publisher.Batch) error {
batchCount++
published.Add(uint(len(batch.Events())))
return nil
}
Expand Down Expand Up @@ -127,9 +125,7 @@ func TestReplaceClientWorker(t *testing.T) {

var publishedFirst atomic.Uint
blockCtrl := make(chan struct{})
var batchCount int
blockingPublishFn := func(batch publisher.Batch) error {
batchCount++
// Emulate blocking. Upon unblocking the in-flight batch that was
// blocked is published.
if publishedFirst.Load() >= publishLimit {
Expand Down

0 comments on commit 15a1383

Please sign in to comment.