Skip to content

Commit

Permalink
bump wait time in integration tests
Browse files Browse the repository at this point in the history
change the Eventually wait to 20 seconds to make the tests pass

Co-authored-by: Chris Selzo <[email protected]>
  • Loading branch information
nader-ziada and selzoc committed Oct 16, 2024
1 parent 635f3ca commit fd5c8f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ vendor/*
releases/*
.idea
bbr-*.err.log
integration/deployment/backup-workspace-*
2 changes: 1 addition & 1 deletion integration/deployment/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ printf "backupcontent2" > $BBR_ARTIFACT_DIRECTORY/backupdump2
fmt.Fprintln(stdin, "no")

By("waiting for the backup to finish successfully", func() {
Eventually(session, 10).Should(gexec.Exit(0))
Eventually(session, 20).Should(gexec.Exit(0))
})

By("still completing the backup", func() {
Expand Down
6 changes: 3 additions & 3 deletions integration/director/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ backup_should_be_locked_before:

Context("and the user decides to cancel the backup", func() {
It("terminates", func() {
Eventually(session).Should(gbytes.Say("Backing up"))
Eventually(session, 10*time.Second).Should(gbytes.Say("Backing up"))
session.Interrupt()

By("printing a helpful message and waiting for user input", func() {
Expand All @@ -362,7 +362,7 @@ backup_should_be_locked_before:
stdin.Write([]byte("yes\n"))

By("then exiting with a failure", func() {
Eventually(session, 10*time.Second).Should(gexec.Exit(1))
Eventually(session, 20*time.Second).Should(gexec.Exit(1))
})

By("outputting a warning about cleanup", func() {
Expand All @@ -389,7 +389,7 @@ backup_should_be_locked_before:
stdin.Write([]byte("no\n"))

By("waiting for the backup to finish successfully", func() {
Eventually(session, 10).Should(gexec.Exit(0))
Eventually(session, 20).Should(gexec.Exit(0))
})

By("still completing the backup", func() {
Expand Down
2 changes: 1 addition & 1 deletion integration/director/restore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ cat $BBR_ARTIFACT_DIRECTORY/backup > /var/vcap/store/bosh/restored_file
stdin.Write([]byte("no\n"))

By("waiting for the restore to finish successfully", func() {
Eventually(session, 10).Should(gexec.Exit(0))
Eventually(session, 20).Should(gexec.Exit(0))
})

By("still completing the restore", func() {
Expand Down

0 comments on commit fd5c8f6

Please sign in to comment.