Skip to content

Commit

Permalink
fix error value
Browse files Browse the repository at this point in the history
  • Loading branch information
baijum committed Jun 9, 2021
1 parent 89ffba1 commit 8229485
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/reconcile/pipeline/context/impl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/redhat-developer/service-binding-operator/pkg/converter"
"github.com/redhat-developer/service-binding-operator/pkg/reconcile/pipeline"
"github.com/redhat-developer/service-binding-operator/pkg/reconcile/pipeline/context/mocks"
v1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/meta"
Expand Down Expand Up @@ -222,15 +221,14 @@ var _ = Describe("Context", func() {
client := fake.NewSimpleDynamicClient(runtime.NewScheme())
client.PrependReactor("list", "foos",
func(action testing.Action) (handled bool, ret runtime.Object, err error) {
return true, &v1.DeploymentList{}, e.New("Error listing foo")
return true, nil, e.New("Error listing foo")
})

ctx := &impl{client: client, serviceBinding: &sb, typeLookup: typeLookup}

_, err := ctx.Applications()
Expect(err).To(HaveOccurred())
// FIXME: This is not the expected error message
Expect(err.Error()).To(ContainSubstring("no kind is registered for the type v1.DeploymentList in scheme"))
Expect(err.Error()).To(ContainSubstring("Error listing foo"))
})
It("should return error if application is not found", func() {
ref := v1alpha1.Application{
Expand Down

0 comments on commit 8229485

Please sign in to comment.