@@ -129,7 +129,7 @@ spec:
129
129
}
130
130
131
131
// Wait for the PipelineRun to start.
132
- if err := WaitForPipelineRunState (ctx , c , pipelineRunName , time .Minute , Running (pipelineRunName ), "PipelineRunRunning" ); err != nil {
132
+ if err := WaitForPipelineRunState (ctx , c , pipelineRunName , time .Minute , Running (pipelineRunName ), "PipelineRunRunning" , v1beta1Version ); err != nil {
133
133
t .Fatalf ("Waiting for PipelineRun to start running: %v" , err )
134
134
}
135
135
@@ -208,7 +208,7 @@ spec:
208
208
}
209
209
}
210
210
// Wait for the PipelineRun to become done/successful.
211
- if err := WaitForPipelineRunState (ctx , c , pipelineRunName , time .Minute , PipelineRunSucceed (pipelineRunName ), "PipelineRunCompleted" ); err != nil {
211
+ if err := WaitForPipelineRunState (ctx , c , pipelineRunName , time .Minute , PipelineRunSucceed (pipelineRunName ), "PipelineRunCompleted" , v1beta1Version ); err != nil {
212
212
t .Fatalf ("Waiting for PipelineRun to complete successfully: %v" , err )
213
213
}
214
214
@@ -334,7 +334,7 @@ spec:
334
334
}
335
335
336
336
t .Logf ("Waiting for Pipelinerun %s in namespace %s to be started" , pipelineRun .Name , namespace )
337
- if err := WaitForPipelineRunState (ctx , c , pipelineRun .Name , timeout , Running (pipelineRun .Name ), "PipelineRunRunning" ); err != nil {
337
+ if err := WaitForPipelineRunState (ctx , c , pipelineRun .Name , timeout , Running (pipelineRun .Name ), "PipelineRunRunning" , v1beta1Version ); err != nil {
338
338
t .Fatalf ("Error waiting for PipelineRun %s to be running: %s" , pipelineRun .Name , err )
339
339
}
340
340
@@ -388,7 +388,7 @@ spec:
388
388
}
389
389
390
390
t .Logf ("Waiting for PipelineRun %s in namespace %s to be timed out" , pipelineRun .Name , namespace )
391
- if err := WaitForPipelineRunState (ctx , c , pipelineRun .Name , timeout , FailedWithReason (v1beta1 .PipelineRunReasonTimedOut .String (), pipelineRun .Name ), "PipelineRunTimedOut" ); err != nil {
391
+ if err := WaitForPipelineRunState (ctx , c , pipelineRun .Name , timeout , FailedWithReason (v1beta1 .PipelineRunReasonTimedOut .String (), pipelineRun .Name ), "PipelineRunTimedOut" , v1beta1Version ); err != nil {
392
392
t .Errorf ("Error waiting for PipelineRun %s to finish: %s" , pipelineRun .Name , err )
393
393
}
394
394
@@ -793,7 +793,7 @@ func TestWaitCustomTask_PipelineRun(t *testing.T) {
793
793
}
794
794
795
795
// Wait for the PipelineRun to the desired state
796
- if err := WaitForPipelineRunState (ctx , c , pipelineRun .Name , timeout , tc .prConditionAccessorFn (pipelineRun .Name ), string (tc .wantPrCondition .Type )); err != nil {
796
+ if err := WaitForPipelineRunState (ctx , c , pipelineRun .Name , timeout , tc .prConditionAccessorFn (pipelineRun .Name ), string (tc .wantPrCondition .Type ), v1beta1Version ); err != nil {
797
797
t .Fatalf ("Error waiting for PipelineRun %q to be running: %s" , pipelineRun .Name , err )
798
798
}
799
799
0 commit comments