Skip to content

Commit

Permalink
Merge branch 'main' into RT-1.32
Browse files Browse the repository at this point in the history
  • Loading branch information
cprabha authored Aug 19, 2024
2 parents 74bf297 + 4e74047 commit 6282a97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (a *attributes) configInterfaceDUT(t *testing.T, d *ondatra.DUTDevice) {

a.configSubinterfaceDUT(t, i, d)
intfPath := gnmi.OC().Interface(p.Name())
gnmi.Replace(t, d, intfPath.Config(), i)
gnmi.Update(t, d, intfPath.Config(), i)
fptest.LogQuery(t, "DUT", intfPath.Config(), gnmi.Get(t, d, intfPath.Config()))
}

Expand Down
3 changes: 2 additions & 1 deletion internal/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package core
import (
"bytes"
"context"
"errors"
"fmt"
"regexp"
"sync"
Expand Down Expand Up @@ -212,7 +213,7 @@ func registerAfter(_ *eventlis.AfterTestsEvent) error {
glog.Infof(msg)
ondatra.Report().AddSuiteProperty("validator.core.end", report)
if foundCores {
return fmt.Errorf(msg)
return errors.New(msg)
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion tools/internal/ocpaths/ocpaths_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func TestValidatePath(t *testing.T) {

err := validatePath(ocpath, root)
if diff := errdiff.Substring(err, tt.wantErrSubstr); diff != "" {
t.Errorf(diff)
t.Error(diff)
}

if err != nil {
Expand Down

0 comments on commit 6282a97

Please sign in to comment.