From 28a4d37d4328a03eab0222aa58639c8a8e5d481c Mon Sep 17 00:00:00 2001 From: arianaw66 Date: Fri, 15 Nov 2024 12:03:37 -0500 Subject: [PATCH] simplify TestCommonCategory() assertion --- test/kubernetes/e2e/features/CRD_categories/suite.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/kubernetes/e2e/features/CRD_categories/suite.go b/test/kubernetes/e2e/features/CRD_categories/suite.go index 9a108887213..192bf2263c0 100644 --- a/test/kubernetes/e2e/features/CRD_categories/suite.go +++ b/test/kubernetes/e2e/features/CRD_categories/suite.go @@ -49,8 +49,6 @@ func (s *testingSuite) TestCommonCategory() { err := cmd.WithStdout(io.Writer(&out)).Run().Cause() s.NoError(err) - // output should include the installed VS - outCRs := strings.Split(strings.TrimSpace(out.String()), "\n") - s.Len(outCRs, 1) - s.Equal(outCRs[0], installedVs) + // output should match the installed VS + s.Equal(strings.TrimSpace(out.String()), installedVs) }