Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nachocano committed Mar 26, 2020
1 parent a0a0ae7 commit 73fdde6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/lib/creation.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ func (client *Client) CreateApiServerSourceOrFail(apiServerSource *sourcesv1alph
client.Tracker.AddObj(apiServerSource)
}

// CreateContainerSourceV1Alpha1OrFail will create a ContainerSource.
func (client *Client) CreateContainerSourceV1Alpha1OrFail(containerSource *sourcesv1alpha1.ContainerSource) {
// CreateContainerSourceV1Alpha2OrFail will create a ContainerSource.
func (client *Client) CreateContainerSourceV1Alpha2OrFail(containerSource *sourcesv1alpha2.ContainerSource) {
client.T.Logf("Creating containersource %+v", containerSource)
containerInterface := client.Eventing.SourcesV1alpha1().ContainerSources(client.Namespace)
containerInterface := client.Eventing.SourcesV1alpha2().ContainerSources(client.Namespace)
_, err := containerInterface.Create(containerSource)
if err != nil {
client.T.Fatalf("Failed to create containersource %q: %v", containerSource.Name, err)
Expand Down

0 comments on commit 73fdde6

Please sign in to comment.