Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tianpeng Wang <tpwang@alauda.io>
  • Loading branch information
timonwong committed Jan 21, 2022
1 parent 843ca08 commit 0735a0a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions operator/pkg/translate/translate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ import (
"fmt"
"testing"

"github.com/stretchr/testify/assert"

"istio.io/api/operator/v1alpha1"
v1alpha12 "istio.io/api/operator/v1alpha1"
"istio.io/istio/operator/pkg/name"
"istio.io/istio/operator/pkg/util"
"istio.io/istio/pkg/test/util/assert"
)

func Test_skipReplicaCountWithAutoscaleEnabled(t *testing.T) {
Expand Down Expand Up @@ -99,7 +97,7 @@ components:
t.Run(tt.name, func(t *testing.T) {
var iop *v1alpha1.IstioOperatorSpec
if tt.values != "" {
iop = &v1alpha12.IstioOperatorSpec{}
iop = &v1alpha1.IstioOperatorSpec{}
if err := util.UnmarshalWithJSONPB(tt.values, iop, true); err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 0735a0a

Please sign in to comment.