Skip to content

Commit

Permalink
Set gomega default
Browse files Browse the repository at this point in the history
Eventually() timeout to 3s

There are some flaky tests. A 1 second timeout may be to small to run
requests through the controller, api-server, vCenter and etcd.
  • Loading branch information
Nuckal777 committed Sep 24, 2021
1 parent e6cedac commit 73eacdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"os"
"path/filepath"
"testing"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -107,6 +108,7 @@ func TestAPIs(t *testing.T) {
}

var _ = BeforeSuite(func() {
SetDefaultEventuallyTimeout(3 * time.Second)
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))

By("bootstrapping test environment")
Expand Down
2 changes: 2 additions & 0 deletions esx/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"syscall"
"testing"
"text/template"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -105,6 +106,7 @@ func SetupSignalHandler() context.Context {
}

var _ = BeforeSuite(func() {
SetDefaultEventuallyTimeout(3 * time.Second)
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))
var err error

Expand Down

0 comments on commit 73eacdc

Please sign in to comment.