Fix yml and import package

This commit is contained in:
toranger
2019-01-31 11:01:45 +08:00
parent e4701195aa
commit 72f6fe32b9
2 changed files with 2 additions and 8 deletions

View File

@@ -12,6 +12,7 @@ before_install:
install: install:
- go get - go get
- go build - go build
- go build github.com/mattn/goveralls
script: script:
- make test - make test
- make ci-test - make ci-test

View File

@@ -6,8 +6,7 @@ import (
"fmt" "fmt"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/tencentyun/cos-go-sdk-v5" "github.com/toranger/cos-go-sdk-v5"
"github.com/tencentyun/cos-go-sdk-v5/debug"
"io/ioutil" "io/ioutil"
"math/rand" "math/rand"
"net/http" "net/http"
@@ -70,12 +69,6 @@ func (s *CosTestSuite) SetupSuite() {
Transport: &cos.AuthorizationTransport{ Transport: &cos.AuthorizationTransport{
SecretID: os.Getenv("COS_SECRETID"), SecretID: os.Getenv("COS_SECRETID"),
SecretKey: os.Getenv("COS_SECRETKEY"), SecretKey: os.Getenv("COS_SECRETKEY"),
Transport: &debug.DebugRequestTransport{
// RequestHeader: true,
// RequestBody: true,
// ResponseHeader: true,
// ResponseBody: true,
},
}, },
}) })