Skip to content

Commit

Permalink
Patch autoscaler tests to get them to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Corlett committed Dec 27, 2023
1 parent 42eba89 commit b2d0c79
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions concourse/tasks/app-autoscaler-acceptance-tests-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ run:
echo "Running tests"
cd paas-cf/manifests/app-autoscaler/upstream
git apply ../diffs/patch_dynamic_policy_test.patch
PATH=$(go env GOPATH)/bin:${PATH}
export PATH
cd src/acceptance/assets/app/go_app
Expand Down
13 changes: 13 additions & 0 deletions manifests/app-autoscaler/diffs/patch_dynamic_policy_test.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/acceptance/app/dynamic_policy_test.go b/src/acceptance/app/dynamic_policy_test.go
index 1339ff514..ff0a2fe47 100644
--- a/src/acceptance/app/dynamic_policy_test.go
+++ b/src/acceptance/app/dynamic_policy_test.go
@@ -50,7 +50,7 @@ var _ = Describe("AutoScaler dynamic policy", func() {

It("should scale out and then back in.", Label(acceptance.LabelSmokeTests), func() {
By(fmt.Sprintf("Use heap %d mb of heap on app", heapToUse))
- CurlAppInstance(cfg, appName, 0, fmt.Sprintf("/memory/%d/5", heapToUse))
+ CurlAppInstance(cfg, appName, 0, fmt.Sprintf("/memory/%d/5", heapToUse*1.1))

By("wait for scale to 2")
WaitForNInstancesRunning(appGUID, 2, 5*time.Minute)

0 comments on commit b2d0c79

Please sign in to comment.