Skip to content

Commit

Permalink
Merge pull request kubernetes#108936 from stevekuznetsov/skuznets/mor…
Browse files Browse the repository at this point in the history
…e-correct-diff

pkg/storage/etcd3: use correct diff in tests
  • Loading branch information
k8s-ci-robot committed Mar 24, 2022
2 parents 4e6000a + 8903372 commit efdb80d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"testing"
"time"

"github.com/google/go-cmp/cmp"
clientv3 "go.etcd.io/etcd/client/v3"

"k8s.io/apimachinery/pkg/api/apitesting"
Expand Down Expand Up @@ -390,9 +389,7 @@ func testCheckResult(t *testing.T, expectEventType watch.EventType, w watch.Inte
t.Errorf("event type want=%v, get=%v", expectEventType, res.Type)
return
}
if diff := cmp.Diff(expectObj, res.Object); diff != "" {
t.Errorf("incorrect obj: %s", diff)
}
expectNoDiff(t, "incorrect obj", expectObj, res.Object)
case <-time.After(wait.ForeverTestTimeout):
t.Errorf("time out after waiting %v on ResultChan", wait.ForeverTestTimeout)
}
Expand Down

0 comments on commit efdb80d

Please sign in to comment.