예제 #1
0
func (s *S) SetUpTest(c *C) {
	attempts := aws.AttemptStrategy{
		Total: 300 * time.Millisecond,
		Delay: 100 * time.Millisecond,
	}
	s3.SetAttemptStrategy(&attempts)
}
예제 #2
0
파일: s3_test.go 프로젝트: hermanschaaf/s3
func (s *S) TestRetryAttempts(c *C) {
	s3.SetAttemptStrategy(nil)
	orig := s3.AttemptStrategy()
	s3.RetryAttempts(false)
	c.Assert(s3.AttemptStrategy(), Equals, aws.AttemptStrategy{})
	s3.RetryAttempts(true)
	c.Assert(s3.AttemptStrategy(), Equals, orig)
}
예제 #3
0
func (s *S) DisableRetries() {
	s3.SetAttemptStrategy(&aws.AttemptStrategy{})
}
예제 #4
0
func (s *S) TearDownSuite(c *C) {
	s3.SetAttemptStrategy(nil)
}
예제 #5
0
func (s *S) TearDownSuite(c *C) {
	s3.SetAttemptStrategy(nil)
	testServer.Stop()
}