Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus committed Jun 6, 2023
1 parent feaf522 commit 4bd0584
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion ygnmi/unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (c *ComplianceErrors) String() string {
return ""
}
var b strings.Builder
b.WriteString("Noncompliance Errors by category (for explanation see https://github.com/openconfig/ygnmi#noncompliance-errors):")
b.WriteString("Noncompliance Errors by category (see https://github.com/openconfig/ygnmi#noncompliance-errors):")
b.WriteString("\nPath Noncompliance Errors:")
if len(c.PathErrors) != 0 {
for _, e := range c.PathErrors {
Expand Down
2 changes: 0 additions & 2 deletions ygnmi/unmarshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package ygnmi

import (
"fmt"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -956,7 +955,6 @@ func TestUnmarshal(t *testing.T) {
validateErrs = complianceErrs.ValidateErrors
// Validate documentation on error
if !strings.Contains(complianceErrs.String(), "https://github.com/openconfig/ygnmi#noncompliance-errors") {
fmt.Println(complianceErrs.String())
t.Errorf("ComplianceError String() didn't contain expected reference to documentation.")
}
}
Expand Down

0 comments on commit 4bd0584

Please sign in to comment.