示例#1
0
文件: s3_test.go 项目: jasonmoo/goamz
func (s *S) SetUpTest(c *check.C) {
	attempts := aws.AttemptStrategy{
		Total: 300 * time.Millisecond,
		Delay: 100 * time.Millisecond,
	}
	s3.SetAttemptStrategy(&attempts)
}
示例#2
0
文件: s3_test.go 项目: jasonmoo/goamz
func (s *S) DisableRetries() {
	s3.SetAttemptStrategy(&aws.AttemptStrategy{})
}
示例#3
0
文件: s3_test.go 项目: jasonmoo/goamz
func (s *S) TearDownSuite(c *check.C) {
	s3.SetAttemptStrategy(nil)
}