Skip to content

v0.1.22

Latest
Compare
Choose a tag to compare
@siller174 siller174 released this 21 Oct 14:45
059c650

What's Changed

  1. New functionality Retry test

// RetryPolitic is a scope of methods to configure test repeat
type RetryPolitic interface {
	// Retry is a function for configure test repeat
	// if response.Code != Expect.Code or any of asserts are failed/broken than test will repeat counts with delay.
	// Default delay is 1 second.
	Retry(count int) MiddlewareRequest

	// RetryDelay set delay for test repeat.
	// if response.Code != Expect.Code or any of asserts are failed/broken than test will repeat counts with delay.
	// Default delay is 1 second.
	RetryDelay(timeout time.Duration) MiddlewareRequest
}

  1. Rename functions RequestRepeat to RequestRetry
  2. Fix broken tests

New Contributors

Full Changelog: v0.1.21...v0.1.22