Skip to content

Commit c15336c

Browse files
committed
fix call to New()
1 parent 00134fe commit c15336c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/hpa/service_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5002,7 +5002,7 @@ func TestService_IsHpaMetricAvailable(t *testing.T) {
50025002
}
50035003
for _, tt := range tests {
50045004
t.Run(tt.name, func(t *testing.T) {
5005-
c, err := New(fake.NewClientBuilder().Build(), record.NewFakeRecorder(10), 0.95, 90, 100, time.Hour, 100, 1000, 3, "")
5005+
c, err := New(fake.NewClientBuilder().Build(), record.NewFakeRecorder(10), 0.95, 90, 100, time.Hour, 100, 1000, 3, []config.ServiceGroup{}, []config.MaximumMaxReplicasPerGroup{}, "")
50065006
if err != nil {
50075007
t.Fatalf("New() error = %v", err)
50085008
}
@@ -5152,7 +5152,7 @@ func TestHPAServiceGroupReplicaLimits(t *testing.T) {
51525152
return hpa
51535153
}(),
51545154
wantTortoise: baseTortoise.DeepCopy(),
5155-
wantErr: false, // Changed to false as zero value should fall back to global max
5155+
wantErr: false,
51565156
},
51575157
{
51585158
name: "multiple service groups with different maxReplicas",

0 commit comments

Comments
 (0)