Пример #1
0
func (s *S) SetUpTest(c *gocheck.C) {
	attempts := aws.AttemptStrategy{
		Total: 300 * time.Millisecond,
		Delay: 100 * time.Millisecond,
	}
	s3.SetAttemptStrategy(&attempts)
}
Пример #2
0
func (s *S) DisableRetries() {
	s3.SetAttemptStrategy(&aws.AttemptStrategy{})
}
Пример #3
0
func (s *S) TearDownSuite(c *gocheck.C) {
	s3.SetAttemptStrategy(nil)
}