Skip to content

Commit

Permalink
test: reduce waitForControllerToProcess duration
Browse files Browse the repository at this point in the history
  • Loading branch information
talal committed Aug 8, 2020
1 parent 3f6f4f8 commit 8b6862d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
)

// Wait for controller to resync and complete its processing.
var waitForControllerToProcess = func() { time.Sleep(500 * time.Millisecond) }
var waitForControllerToProcess = func() { time.Sleep(150 * time.Millisecond) }

var _ = Describe("Controller", func() {
ctx := context.Background()
Expand Down
4 changes: 2 additions & 2 deletions test/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ var _ = BeforeSuite(func() {
logf.SetLogger(zap.New(zap.UseDevMode(true), zap.WriteTo(GinkgoWriter)))

By("bootstrapping test environment")
// Use "bin" subdirectory for control binaries. By default, envtest looks
// for these binaries in "/usr/local/kubebuilder/bin".
// Use "bin" subdirectory for control plane binaries. By default, envtest
// looks for these binaries in "/usr/local/kubebuilder/bin".
p, err := filepath.Abs("bin")
Expect(err).ToNot(HaveOccurred())
err = os.Setenv("KUBEBUILDER_ASSETS", p)
Expand Down

0 comments on commit 8b6862d

Please sign in to comment.