rados: import testify suite as tsuite

This avoids import shadowing elsewhere in rados_test.go.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-08-16 12:57:23 -04:00 committed by mergify[bot]
parent bf6cd07204
commit c658cc93a9
2 changed files with 4 additions and 4 deletions

View File

@ -14,11 +14,11 @@ import (
"github.com/gofrs/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
tsuite "github.com/stretchr/testify/suite"
)
type RadosTestSuite struct {
suite.Suite
tsuite.Suite
conn *Conn
ioctx *IOContext
pool string
@ -1293,5 +1293,5 @@ func (suite *RadosTestSuite) TestSetGetNamespace() {
}
func TestRadosTestSuite(t *testing.T) {
suite.Run(t, new(RadosTestSuite))
tsuite.Run(t, new(RadosTestSuite))
}

View File

@ -56,7 +56,7 @@ func (c *debugHTTPClient) Do(req *http.Request) (*http.Response, error) {
}
func TestRadosGWTestSuite(t *testing.T) {
suite.Run(t, new(RadosGWTestSuite))
tsuite.Run(t, new(RadosGWTestSuite))
}
// S3Agent wraps the s3.S3 structure to allow for wrapper methods