Skip to content

Commit

Permalink
Increase Eventually Timeout
Browse files Browse the repository at this point in the history
Discover test is flaky, bumping the eventually timeout
seems to resolve it.

Signed-off-by: Brett Logan <brett.t.logan@ibm.com>
  • Loading branch information
lindluni committed Nov 17, 2020
1 parent a25b63f commit 1d7b876
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/discover/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package main
import (
"os/exec"
"testing"
"time"

. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
Expand All @@ -25,6 +26,6 @@ func TestMissingArguments(t *testing.T) {
cmd := exec.Command(discover, "--configFile", "conf.yaml", "--MSP", "SampleOrg", "saveConfig")
process, err := Start(cmd, nil, nil)
gt.Expect(err).NotTo(HaveOccurred())
gt.Eventually(process).Should(Exit(1))
gt.Eventually(process, 5*time.Second).Should(Exit(1))
gt.Expect(process.Err).To(gbytes.Say("empty string that is mandatory"))
}

0 comments on commit 1d7b876

Please sign in to comment.