@@ -180,7 +180,7 @@ func commonSetup(t *testing.T, gitCloneUrl string, namespace string) *testArgs {
180180 var ok bool
181181 ta .gitClone , ok = obj .(* tektonpipeline.Task )
182182 if ! ok {
183- debugAndFailTest (ta , fmt .Sprintf ("%s did not produce a task: %#v" , gitCloneTaskUrl , obj ))
183+ debugAndFailTest (ta , fmt .Sprintf ("%s did not produce a task: %#v" , v1alpha1 . KonfluxGitDefinition , obj ))
184184 }
185185 ta .gitClone , err = tektonClient .TektonV1 ().Tasks (ta .ns ).Create (context .TODO (), ta .gitClone , metav1.CreateOptions {})
186186 if err != nil {
@@ -244,7 +244,7 @@ func commonSetup(t *testing.T, gitCloneUrl string, namespace string) *testArgs {
244244 return ta
245245}
246246func setupE2E (t * testing.T , namespace string ) * testArgs {
247- ta := commonSetup (t , gitCloneTaskUrl , namespace )
247+ ta := commonSetup (t , v1alpha1 . KonfluxGitDefinition , namespace )
248248 err := wait .PollUntilContextTimeout (context .TODO (), 1 * time .Second , 1 * time .Minute , true , func (ctx context.Context ) (done bool , err error ) {
249249 _ , err = kubeClient .CoreV1 ().ServiceAccounts (ta .ns ).Get (context .TODO (), "pipeline" , metav1.GetOptions {})
250250 if err != nil {
@@ -993,7 +993,7 @@ type MavenRepoDetails struct {
993993
994994func setupMinikube (t * testing.T , namespace string ) * testArgs {
995995
996- ta := commonSetup (t , gitCloneTaskUrl , namespace )
996+ ta := commonSetup (t , v1alpha1 . KonfluxGitDefinition , namespace )
997997 //go through and limit all deployments
998998 //we have very little memory, we need some limits to make sure minikube can actually run
999999 //limit every deployment to 100mb
0 commit comments