@@ -26,6 +26,7 @@ import (
26
26
v1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
27
27
corev1 "k8s.io/api/core/v1"
28
28
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
29
+ knativetest "knative.dev/pkg/test"
29
30
)
30
31
31
32
const (
@@ -54,6 +55,10 @@ func TestSidecarTaskSupport(t *testing.T) {
54
55
}}
55
56
56
57
clients , namespace := setup (t )
58
+ t .Parallel ()
59
+
60
+ knativetest .CleanupOnInterrupt (func () { tearDown (t , clients , namespace ) }, t .Logf )
61
+ defer tearDown (t , clients , namespace )
57
62
58
63
for i , test := range tests {
59
64
t .Run (test .desc , func (t * testing.T ) {
@@ -63,10 +68,10 @@ func TestSidecarTaskSupport(t *testing.T) {
63
68
ObjectMeta : metav1.ObjectMeta {Name : sidecarTaskName , Namespace : namespace },
64
69
Spec : v1beta1.TaskSpec {
65
70
Steps : []v1beta1.Step {{
66
- Container : corev1.Container {Name : primaryContainerName , Image : "busybox:1.31.0-musl " , Command : test .stepCommand },
71
+ Container : corev1.Container {Name : primaryContainerName , Image : "busybox" , Command : test .stepCommand },
67
72
}},
68
73
Sidecars : []v1beta1.Sidecar {{
69
- Container : corev1.Container {Name : sidecarContainerName , Image : "busybox:1.31.0-musl " , Command : test .sidecarCommand },
74
+ Container : corev1.Container {Name : sidecarContainerName , Image : "busybox" , Command : test .sidecarCommand },
70
75
}},
71
76
},
72
77
}
0 commit comments