From 060c11894f6fae54738b16776ae0ad702ef8b120 Mon Sep 17 00:00:00 2001 From: odubajDT Date: Fri, 8 Nov 2024 13:35:31 +0100 Subject: [PATCH] fix errors Signed-off-by: odubajDT --- pkg/pdatatest/pprofiletest/profiles.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/pdatatest/pprofiletest/profiles.go b/pkg/pdatatest/pprofiletest/profiles.go index a00f8baa87ea..8e34fe60af31 100644 --- a/pkg/pdatatest/pprofiletest/profiles.go +++ b/pkg/pdatatest/pprofiletest/profiles.go @@ -24,7 +24,7 @@ func CompareProfiles(expected, actual pprofile.Profiles, options ...CompareProfi } if exp.IsReadOnly() != act.IsReadOnly() { - return fmt.Errorf("readOnly state differs from expected '%s'", exp.IsReadOnly()) + return fmt.Errorf("readOnly state differs from expected '%t'", exp.IsReadOnly()) } if exp.SampleCount() != act.SampleCount() { @@ -648,7 +648,7 @@ func CompareProfileFunctionSlice(expected, actual pprofile.FunctionSlice) error if e != a { outOfOrderErrs = multierr.Append(outOfOrderErrs, fmt.Errorf(`function are out of order: function "name: %d" expected at index %d, found at index %d`, - elr.Name(), elr.ID(), e, a)) + elr.Name(), e, a)) } break }