Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Mar 26, 2024
1 parent a2c1a4a commit 2ba4199
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/framework/autoscaler_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ func AddScaleUpDeploymentAndWait(ctx context.Context, input AddScaleUpDeployment
replicas := workers + 1
memoryRequired := int64(float64(memory.Value()) * 0.6)
podMemory := resource.NewQuantity(memoryRequired, resource.BinarySI)
deploymentName := input.Name
if deploymentName == "" {
deploymentName = "scale-up"
deploymentName := "scale-up"
if input.Name != "" {
deploymentName = input.Name
}

scaleUpDeployment := &appsv1.Deployment{
Expand Down Expand Up @@ -228,12 +228,12 @@ type DeleteScaleUpDeploymentAndWaitInput struct {
}

// DeleteScaleUpDeploymentAndWait deletes the scale up deployment and waits for it to be deleted.
func DeleteScaleUpDeploymentAndWait(ctx context.Context, input DeleteScaleUpDeploymentAndWaitInput) error {
func DeleteScaleUpDeploymentAndWait(ctx context.Context, input DeleteScaleUpDeploymentAndWaitInput) {
By("Retrieving the scale up deployment")
deployment := &appsv1.Deployment{}
deploymentName := input.Name
if deploymentName == "" {
deploymentName = "scale-up"
deploymentName := "scale-up"
if input.Name != "" {
deploymentName = input.Name
}
Expect(input.ClusterProxy.GetClient().Get(ctx, client.ObjectKey{Name: deploymentName, Namespace: metav1.NamespaceDefault}, deployment)).To(Succeed(), "failed to get the scale up pod")

Expand All @@ -249,7 +249,6 @@ func DeleteScaleUpDeploymentAndWait(ctx context.Context, input DeleteScaleUpDepl
}
return nil
}, input.WaitForDelete...).Should(BeNil())
return nil
}

type ProcessYAMLInput struct {
Expand Down

0 comments on commit 2ba4199

Please sign in to comment.