Skip to content

Commit d95aa61

Browse files
authored
fix(logp): TestConfigureWithCore fails with Go 1.24 (#233)
The cmd/vet in Go 1.24 reports printf calls with non-const format and no args, causing one test in logp to fail. See golang/go#60529. ``` $ go install golang.org/dl/gotip@latest $ gotip download $ gotip test ./logp -count=1 logp/core_test.go:714:7: non-constant format string in call to github.com/elastic/elastic-agent-libs/logp.Info FAIL github.com/elastic/elastic-agent-libs/logp [build failed] ```
1 parent f1a8d99 commit d95aa61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logp/core_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ func TestConfigureWithCore(t *testing.T) {
711711
if err != nil {
712712
t.Fatalf("Unexpected err: %s", err)
713713
}
714-
Info(testMsg)
714+
Info("The quick brown %s jumped over the lazy %s.", "fox", "dog")
715715
var r map[string]interface{}
716716

717717
err = json.Unmarshal(b.Bytes(), &r)

0 commit comments

Comments
 (0)