File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ func (r *spaceListResource) ListResourceConfigSchema(
6666 }
6767}
6868
69- // List streams all space within an organization from the API
69+ // List streams all space within an organization from the API.
7070func (r * spaceListResource ) List (
7171 ctx context.Context ,
7272 req list.ListRequest ,
Original file line number Diff line number Diff line change @@ -89,7 +89,10 @@ func TestSpaceListResource(t *testing.T) {
8989 })
9090
9191 t .Run ("error path - configure" , func (t * testing.T ) {
92- r := NewSpaceListResource ().(list.ListResourceWithConfigure )
92+ r , ok := NewSpaceListResource ().(list.ListResourceWithConfigure )
93+ if ! ok {
94+ t .Fatalf ("Resource does not implement ListResourceWithConfigure" )
95+ }
9396 resp := & res.ConfigureResponse {}
9497 req := res.ConfigureRequest {
9598 ProviderData : struct {}{}, // Wrong type
You can’t perform that action at this time.
0 commit comments