Skip to content

Commit

Permalink
Fix compilation of upgrade tests (knative-extensions#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
markusthoemmes authored Jun 8, 2021
1 parent 664a5ee commit b6f1e2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/upgrade/continual.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
eventingduckv1 "knative.dev/eventing/pkg/apis/duck/v1"
eventingduckv1beta1 "knative.dev/eventing/pkg/apis/duck/v1beta1"
testlib "knative.dev/eventing/test/lib"
"knative.dev/eventing/test/lib/resources"
"knative.dev/eventing/test/upgrade/prober"
Expand All @@ -37,14 +37,14 @@ var (
config.FailOnErrors = true
config.Interval = 2 * time.Millisecond
config.BrokerOpts = append(config.BrokerOpts,
resources.WithDeliveryForBroker(&eventingduckv1.DeliverySpec{
resources.WithDeliveryForBrokerV1Beta1(&eventingduckv1beta1.DeliverySpec{
Retry: &retryCount,
BackoffPolicy: &backoffPolicy,
BackoffDelay: &backoffDelay,
}))
}
retryCount = int32(12)
backoffPolicy = eventingduckv1.BackoffPolicyExponential
backoffPolicy = eventingduckv1beta1.BackoffPolicyExponential
backoffDelay = "PT1S"
)

Expand Down Expand Up @@ -116,7 +116,7 @@ type ReplicationOptions struct {
// RetryOptions holds options for retries.
type RetryOptions struct {
RetryCount int
BackoffPolicy eventingduckv1.BackoffPolicyType
BackoffPolicy eventingduckv1beta1.BackoffPolicyType
BackoffDelay string
}

Expand Down

0 comments on commit b6f1e2a

Please sign in to comment.