Skip to content

Commit 28a4d37

Browse files
committed
simplify TestCommonCategory() assertion
1 parent 72ffa84 commit 28a4d37

File tree

1 file changed

+2
-4
lines changed
  • test/kubernetes/e2e/features/CRD_categories

1 file changed

+2
-4
lines changed

test/kubernetes/e2e/features/CRD_categories/suite.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ func (s *testingSuite) TestCommonCategory() {
4949
err := cmd.WithStdout(io.Writer(&out)).Run().Cause()
5050
s.NoError(err)
5151

52-
// output should include the installed VS
53-
outCRs := strings.Split(strings.TrimSpace(out.String()), "\n")
54-
s.Len(outCRs, 1)
55-
s.Equal(outCRs[0], installedVs)
52+
// output should match the installed VS
53+
s.Equal(strings.TrimSpace(out.String()), installedVs)
5654
}

0 commit comments

Comments
 (0)