Skip to content

Commit

Permalink
fix: delete protocmp.
Browse files Browse the repository at this point in the history
Signed-off-by: Electronic-Waste <2690692950@qq.com>
  • Loading branch information
Electronic-Waste committed Jul 17, 2024
1 parent 7d6a64d commit d2b0c48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/webhook/v1beta1/pod/inject_webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/onsi/gomega"
"google.golang.org/protobuf/testing/protocmp"
appsv1 "k8s.io/api/apps/v1"
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -1164,7 +1163,7 @@ func TestMutatePodEnv(t *testing.T) {
)
}
// Compare Pod with expected pod after mutation
if diff := cmp.Diff(testcase.mutatedPod, testcase.pod, protocmp.Transform()); len(diff) != 0 {
if diff := cmp.Diff(testcase.mutatedPod, testcase.pod); len(diff) != 0 {
t.Errorf("Unexpected mutated result (-want,+got):\n%s", diff)
}
})
Expand Down

0 comments on commit d2b0c48

Please sign in to comment.