Skip to content

Commit

Permalink
fix unit test (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzong18 authored and huiguangjun committed Oct 30, 2023
1 parent 535b659 commit 0b1143e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion oss/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5829,8 +5829,14 @@ func (s *OssClientSuite) TestDescribeRegions(c *C) {

// TestDescribeRegions
func (s *OssClientSuite) TestBucketResponseHeader(c *C) {
client, err := New(endpoint, accessID, accessKey)
client, err := New("oss-ap-southeast-2.aliyuncs.com", accessID, accessKey)
c.Assert(err, IsNil)

bucketName := bucketNamePrefix + "-resp-" + RandLowStr(6)
err = client.CreateBucket(bucketName)
c.Assert(err, IsNil)
time.Sleep(3 * time.Second)

reqHeader := PutBucketResponseHeader{
Rule: []ResponseHeaderRule{
{
Expand Down

0 comments on commit 0b1143e

Please sign in to comment.