示例#1
0
文件: sqs_test.go 项目: ngaut/sqs
func (s *SqsSimpleTestSuite) SetUpSuite(c *gocheck.C) {
	auth := aws.Auth{"abc", "123"}
	s.sqs = sqs.New(auth, aws.Region{SQSEndpoint: "http://sqs.us-east-1.amazonaws.com"})
	qName := fmt.Sprintf("testqueue%v", time.Now())
	fmt.Println(qName)
}
示例#2
0
文件: batch_test.go 项目: ngaut/sqs
func (s *BatchSuite) SetUpTest(c *C) {
	fmt.Println("setUp")
	auth := aws.Auth{"abc", "123"}
	s.sqs = sqs.New(auth, aws.Region{SQSEndpoint: "http://sqs.us-east-1.amazonaws.com"})
}