@@ -19,12 +19,12 @@ package testing
19
19
import (
20
20
"fmt"
21
21
"math/rand"
22
- "sigs.k8s.io/structured-merge-diff/v4/typed"
23
22
"strconv"
24
23
"sync"
25
24
"testing"
26
25
27
26
"github.com/stretchr/testify/assert"
27
+ "sigs.k8s.io/structured-merge-diff/v4/typed"
28
28
29
29
v1 "k8s.io/api/core/v1"
30
30
"k8s.io/apimachinery/pkg/api/errors"
@@ -450,7 +450,7 @@ func TestGetWithExactMatch(t *testing.T) {
450
450
nodeResource := schema.GroupVersionResource {Group : "" , Version : "v1" , Resource : "node" }
451
451
node , gvr := constructObject (nodeResource , "node" , "" )
452
452
453
- assert .Nil (t , o .Add (node ))
453
+ assert .NoError (t , o .Add (node ))
454
454
455
455
// Exact match
456
456
_ , err = o .Get (gvr , "" , "node" )
@@ -466,7 +466,7 @@ func TestGetWithExactMatch(t *testing.T) {
466
466
o = NewObjectTracker (scheme , codecs .UniversalDecoder ())
467
467
podResource := schema.GroupVersionResource {Group : "" , Version : "v1" , Resource : "pod" }
468
468
pod , gvr := constructObject (podResource , "pod" , "default" )
469
- assert .Nil (t , o .Add (pod ))
469
+ assert .NoError (t , o .Add (pod ))
470
470
471
471
// Exact match
472
472
_ , err = o .Get (gvr , "default" , "pod" )
0 commit comments