Skip to content

Commit

Permalink
🕵️
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerj0 committed Apr 24, 2024
1 parent 3f5222d commit bba20af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/acceptance/app/dynamic_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ var _ = Describe("AutoScaler dynamic policy", func() {
})

JustBeforeEach(func() {
// simulates ~100 requests per second
// simulate ongoing ~100 requests per second
ticker = time.NewTicker(10 * time.Millisecond)
go func(chan bool) {
defer GinkgoRecover()
Expand All @@ -206,6 +206,12 @@ var _ = Describe("AutoScaler dynamic policy", func() {
WaitForNInstancesRunning(appGUID, 2, 5*time.Minute)
})

AfterEach(func() {
// ginkgo requires all go-routines to be finished before reporting the result.
// give the curl-command executing go-routines some time to return.
time.Sleep(10 * time.Second)
})

})

Context("when throughput is less than scaling in threshold", func() {
Expand Down

0 comments on commit bba20af

Please sign in to comment.