From 299e3fef4ea8f2828849e8d439044fd5312b8427 Mon Sep 17 00:00:00 2001 From: Huabing Zhao Date: Mon, 2 Dec 2024 14:28:57 +0000 Subject: [PATCH] revert translate test Signed-off-by: Huabing Zhao --- internal/cmd/egctl/translate_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/internal/cmd/egctl/translate_test.go b/internal/cmd/egctl/translate_test.go index e87167ce305..20cf76d0162 100644 --- a/internal/cmd/egctl/translate_test.go +++ b/internal/cmd/egctl/translate_test.go @@ -22,7 +22,6 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/yaml" - "github.com/envoyproxy/gateway/internal/gatewayapi/resource" "github.com/envoyproxy/gateway/internal/utils/field" "github.com/envoyproxy/gateway/internal/utils/file" ) @@ -369,12 +368,8 @@ func TestTranslate(t *testing.T) { // want.GatewayClass.Status.SupportedFeatures = status.GatewaySupportedFeatures // } - opts := []cmp.Option{ - cmpopts.IgnoreFields(metav1.Condition{}, "LastTransitionTime"), - cmpopts.IgnoreFields(resource.Resources{}, "serviceMap"), - } - - require.Empty(t, cmp.Diff(want, got, opts...)) + opts := cmpopts.IgnoreFields(metav1.Condition{}, "LastTransitionTime") + require.Empty(t, cmp.Diff(want, got, opts)) }) } }