Skip to content

Commit

Permalink
remove adding List for discoveryType in test
Browse files Browse the repository at this point in the history
  • Loading branch information
archerwu9425 committed Nov 13, 2023
1 parent 328b4d8 commit 949b0c6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/clusterctl/client/cluster/objectgraph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1779,10 +1779,6 @@ func getFakeDiscoveryTypes(ctx context.Context, graph *objectGraph) error {
return err
}

// Given that the Fake client behaves in a different way than real client, for this test we are required to add the List suffix to all the types.
for _, discoveryType := range graph.types {
discoveryType.typeMeta.Kind = fmt.Sprintf("%sList", discoveryType.typeMeta.Kind)
}
return nil
}

Expand Down

0 comments on commit 949b0c6

Please sign in to comment.