func WithTesting()

in exponential/exponential.go [90:99]


func WithTesting(options ...TestOption) Option {
	if !testing.Testing() {
		panic("called WithTesting outside of a test")
	}

	return func(b *Backoff) error {
		b.useTest = true
		return nil
	}
}