diff --git a/pkg/controller/operators/openshift/suite_test.go b/pkg/controller/operators/openshift/suite_test.go index da10439784..e639720b5c 100644 --- a/pkg/controller/operators/openshift/suite_test.go +++ b/pkg/controller/operators/openshift/suite_test.go @@ -108,5 +108,5 @@ var _ = BeforeSuite(func() { var _ = AfterSuite(func() { By("tearing down the test environment") close(syncCh) - Expect(testEnv.Stop()).To(Succeed()) + testEnv.Stop() }) diff --git a/pkg/controller/operators/suite_test.go b/pkg/controller/operators/suite_test.go index 2ddfb18ae8..c75cd69b9f 100644 --- a/pkg/controller/operators/suite_test.go +++ b/pkg/controller/operators/suite_test.go @@ -162,8 +162,7 @@ var _ = AfterSuite(func() { ctx.Done() By("tearing down the test environment") - err := testEnv.Stop() - Expect(err).ToNot(HaveOccurred()) + testEnv.Stop() }) func newOperator(name string) *decorators.Operator {