diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index 85daeb03..afe5798b 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -2297,10 +2297,7 @@ data: if err != nil { t.Errorf("failed to parse object: %v", err) } - switch node.GetName() { - case "kptfile.kpt.dev": - continue - case "test-data": + if node.GetName() == "test-data" { f := node.Field("data") if f.IsNilOrEmpty() { t.Fatalf("couldn't find data field in test-data")