diff --git a/Makefile b/Makefile index 5a3ad1c7e1..b9681f4271 100644 --- a/Makefile +++ b/Makefile @@ -640,7 +640,7 @@ endif # this will run the fuzzing using /tmp/testcase and save benchmark locally. test-fuzz: $(GOTEST) -timeout 30s -tags dev,gofuzz -cpuprofile cpu.prof -memprofile mem.prof \ - -run ^Test_Fuzz$$ github.com/grafana/loki/pkg/logql -v -count=1 -timeout=0s + -run ^Test_Fuzz$$ github.com/grafana/loki/pkg/logql/syntax -v -count=1 -timeout=0s format: find . $(DONT_FIND) -name '*.pb.go' -prune -o -name '*.y.go' -prune -o -name '*.rl.go' -prune -o \ diff --git a/pkg/logql/syntax/fuzz.go b/pkg/logql/syntax/fuzz.go index dcd0e24320..f6d27926f9 100644 --- a/pkg/logql/syntax/fuzz.go +++ b/pkg/logql/syntax/fuzz.go @@ -1,7 +1,7 @@ //go:build gofuzz // +build gofuzz -package logql +package syntax func FuzzParseExpr(data []byte) int { _, err := ParseExpr(string(data)) diff --git a/pkg/logql/syntax/fuzz_test.go b/pkg/logql/syntax/fuzz_test.go index d431758538..b02551b1be 100644 --- a/pkg/logql/syntax/fuzz_test.go +++ b/pkg/logql/syntax/fuzz_test.go @@ -1,7 +1,7 @@ //go:build gofuzz // +build gofuzz -package logql +package syntax import ( "io/ioutil"