Skip to content

Commit d2852c9

Browse files
committed
Increase timeout for buildpack version checks
1 parent 2261c6b commit d2852c9

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/python/integration/deploy_a_python_app_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"path/filepath"
55
"regexp"
66
"strconv"
7+
"time"
78

89
"github.com/blang/semver"
910
"github.com/cloudfoundry/libbuildpack"
@@ -36,7 +37,7 @@ var _ = Describe("CF Python Buildpack", func() {
3637
It("displays a nice error messages and gracefully fails", func() {
3738
Expect(app.Push()).ToNot(Succeed())
3839

39-
Eventually(app.Stdout.String()).Should(ContainSubstring("-----> Python Buildpack version"))
40+
Eventually(app.Stdout.String(), 30*time.Second).Should(ContainSubstring("-----> Python Buildpack version"))
4041
Expect(app.ConfirmBuildpack(buildpackVersion)).To(Succeed())
4142

4243
Eventually(app.Stdout.String()).Should(ContainSubstring("Could not install python: no match found for 99.99.99"))

src/python/integration/override_yml_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package integration_test
22

33
import (
4+
"time"
5+
46
"github.com/cloudfoundry/libbuildpack/cutlass"
57

68
. "github.com/onsi/ginkgo"
@@ -41,8 +43,8 @@ var _ = Describe("override yml", func() {
4143
It("Forces python from override buildpack", func() {
4244
Expect(app.Push()).ToNot(Succeed())
4345

44-
Eventually(app.Stdout.String()).Should(ContainSubstring("-----> OverrideYML Buildpack"))
45-
Eventually(app.Stdout.String()).Should(ContainSubstring("-----> Python Buildpack version"))
46+
Eventually(app.Stdout.String(), 30*time.Second).Should(ContainSubstring("-----> OverrideYML Buildpack"))
47+
Eventually(app.Stdout.String(), 30*time.Second).Should(ContainSubstring("-----> Python Buildpack version"))
4648
Expect(app.ConfirmBuildpack(buildpackVersion)).To(Succeed())
4749

4850
Eventually(app.Stdout.String()).Should(ContainSubstring("-----> Installing python"))

0 commit comments

Comments
 (0)