Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pmorie authored and jpeeler committed Nov 1, 2017
1 parent 5e77882 commit 01d81e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pkg/controller/controller_serviceclass_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ func TestReconcileClusterServiceClassRemovedFromCatalog(t *testing.T) {
},
},
{
name: "removed from catalog, no instances left, delete fails", serviceClass: getRemovedServiceClass(),
instances: nil,
shouldError: true,
name: "removed from catalog, no instances left, delete fails",
serviceClass: getRemovedServiceClass(),
instances: nil,
shouldError: true,
catalogClientPrepFunc: func(client *fake.Clientset) {
client.AddReactor("delete", "clusterserviceclasses", func(action clientgotesting.Action) (bool, runtime.Object, error) {
return true, nil, errors.New("oops")
Expand Down
3 changes: 2 additions & 1 deletion pkg/controller/controller_serviceplan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ func TestReconcileClusterServicePlanRemovedFromCatalog(t *testing.T) {
},
},
{
name: "removed from catalog, no instances left, delete fails", plan: getRemovedPlan(),
name: "removed from catalog, no instances left, delete fails",
plan: getRemovedPlan(),
instances: nil,
shouldError: true,
catalogClientPrepFunc: func(client *fake.Clientset) {
Expand Down

0 comments on commit 01d81e5

Please sign in to comment.