Skip to content

Commit

Permalink
Make the e2e eventually timeout configurable via env var
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-royal committed Jul 18, 2023
1 parent 008dc5e commit 6ed4e67
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,13 @@ var _ = SynchronizedBeforeSuite(func() []byte {
defaultAppBitsFile = sharedSetup.DefaultAppBitsFile
multiProcessAppBitsFile = sharedSetup.MultiProcessAppBitsFile

SetDefaultEventuallyTimeout(240 * time.Second)
eventuallyTimeoutSeconds := 240
customEventuallyTimeoutSeconds := os.Getenv("E2E_EVENTUALLY_TIMEOUT_SECONDS")
if customEventuallyTimeoutSeconds != "" {
eventuallyTimeoutSeconds, err = strconv.Atoi(customEventuallyTimeoutSeconds)
Expect(err).NotTo(HaveOccurred())
}
SetDefaultEventuallyTimeout(time.Duration(eventuallyTimeoutSeconds) * time.Second)
SetDefaultEventuallyPollingInterval(2 * time.Second)

logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))
Expand Down

0 comments on commit 6ed4e67

Please sign in to comment.