e2e_node

package
v1.2.0-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(maxWait time.Duration, wait time.Duration, retry RetryFn) []error

Retry retries the RetryFn for a maximum of maxWait time. The wait duration is waited between retries. If the success condition is not met in maxWait time, the list of encountered errors is returned. If successful returns an empty list. Example:

Expect(Retry(time.Minute*1, time.Second*2, func() error {
   if success {
     return nil
   } else {
     return errors.New("Failed")
   }
}).To(BeNil(), fmt.Sprintf("Failed"))

Types

type RetryFn

type RetryFn func() error

RetryFn represents a retryable test condition. It returns an error if the condition is not met otherwise returns nil for success.

Directories

Path Synopsis
Build the binary with `go build conformance.go`, then run the conformance binary on a node candidate.
Build the binary with `go build conformance.go`, then run the conformance binary on a node candidate.
To run the e2e tests against one or more hosts on gce: $ go run run_e2e.go --hosts <comma separated hosts> Requires gcloud compute ssh access to the hosts
To run the e2e tests against one or more hosts on gce: $ go run run_e2e.go --hosts <comma separated hosts> Requires gcloud compute ssh access to the hosts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL