Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Nov 8, 2024
1 parent 187bac3 commit 060c118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pdatatest/pprofiletest/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 060c118

Please sign in to comment.