File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
plugins/inputs/logfile/tail Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ lint: install-golangci-lint simple-lint
199199 ${LINTER} run ./...
200200
201201test :
202- CGO_ENABLED=0 go test -timeout 15m -coverprofile coverage.txt -failfast ./...
202+ CGO_ENABLED=0 go test -timeout 10m -parallel 4 -coverprofile coverage.txt -failfast ./...
203203
204204# List of existing packages with data races
205205# TODO: Fix each
@@ -214,7 +214,7 @@ PKG_WITH_DATA_RACE += plugins/outputs/cloudwatch$$
214214PKG_WITH_DATA_RACE += plugins/processors/ec2tagger
215215PKG_WITH_DATA_RACE_PATTERN := $(shell echo '$(PKG_WITH_DATA_RACE ) ' | tr ' ' '|')
216216test-data-race :
217- CGO_ENABLED=1 go test -timeout 15m -race -parallel 4 $(shell go list ./... | grep -v -E '$(PKG_WITH_DATA_RACE_PATTERN ) ')
217+ CGO_ENABLED=1 go test -timeout 10m -race -parallel 4 $(shell go list ./... | grep -v -E '$(PKG_WITH_DATA_RACE_PATTERN ) ')
218218
219219clean ::
220220 rm -rf release/ build/
Original file line number Diff line number Diff line change @@ -377,6 +377,7 @@ func TestConcurrentLinePoolAccess(t *testing.T) {
377377 wg .Add (1 )
378378 go func () {
379379 defer wg .Done ()
380+ defer close (linesChan )
380381 for i := 0 ; i < numLines ; i ++ {
381382 select {
382383 case line := <- tail .Lines :
@@ -386,7 +387,6 @@ func TestConcurrentLinePoolAccess(t *testing.T) {
386387 return
387388 }
388389 }
389- close (linesChan )
390390 }()
391391
392392 numWorkers := 5
You can’t perform that action at this time.
0 commit comments