cron

package
v0.0.0-...-cb77e8e Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cron provides a function to run a test only in Travis CI cron runs, and retry the test with increasing delays a few times before failing the build.

The primary purpose of this method is to allow cron test that are non-hermetic and run against live (usually http) endpoints. Since the live endpoints could occasionally throw errors, there is built-in retry with delays between attempts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test(t *testing.T, testFunc func() error)

Test runs a test if running in the CI's cron mode. It handles retries if the test returns an error, but passes through failures to the test suite. This allows the test function to retry by returning transient errors, while not wasting attempts on non-retryable failures.

Types

This section is empty.

Jump to

Keyboard shortcuts

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