Skip to content

Commit

Permalink
Update TestTimeoutHandler from v1alpha1 to v1beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
dghubble authored and tekton-robot committed May 18, 2020
1 parent f843899 commit 5c047b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/reconciler/timeout_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ func TestTaskRunSingleNamespaceCheckTimeouts(t *testing.T) {
))

d := test.Data{
TaskRuns: []*v1alpha1.TaskRun{taskRunTimedout, taskRunTimedoutOtherNS},
Tasks: []*v1alpha1.Task{simpleTask},
TaskRuns: []*v1beta1.TaskRun{taskRunTimedout, taskRunTimedoutOtherNS},
Tasks: []*v1beta1.Task{simpleTask},
Namespaces: []*corev1.Namespace{{
ObjectMeta: metav1.ObjectMeta{
Name: testNs,
Expand All @@ -195,7 +195,7 @@ func TestTaskRunSingleNamespaceCheckTimeouts(t *testing.T) {
th := NewTimeoutHandler(stopCh, zap.New(observer).Sugar())
gotCallback := sync.Map{}
f := func(tr interface{}) {
trNew := tr.(*v1alpha1.TaskRun)
trNew := tr.(*v1beta1.TaskRun)
gotCallback.Store(trNew.Name, struct{}{})
}

Expand All @@ -204,7 +204,7 @@ func TestTaskRunSingleNamespaceCheckTimeouts(t *testing.T) {

for _, tc := range []struct {
name string
taskRun *v1alpha1.TaskRun
taskRun *v1beta1.TaskRun
expectCallback bool
}{{
name: "timedout",
Expand Down

0 comments on commit 5c047b1

Please sign in to comment.