mirror of
https://github.com/ceph/go-ceph
synced 2025-02-16 10:37:19 +00:00
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:
parent
bf6cd07204
commit
c658cc93a9
@ -14,11 +14,11 @@ import (
|
|||||||
"github.com/gofrs/uuid"
|
"github.com/gofrs/uuid"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/stretchr/testify/suite"
|
tsuite "github.com/stretchr/testify/suite"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RadosTestSuite struct {
|
type RadosTestSuite struct {
|
||||||
suite.Suite
|
tsuite.Suite
|
||||||
conn *Conn
|
conn *Conn
|
||||||
ioctx *IOContext
|
ioctx *IOContext
|
||||||
pool string
|
pool string
|
||||||
@ -1293,5 +1293,5 @@ func (suite *RadosTestSuite) TestSetGetNamespace() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestRadosTestSuite(t *testing.T) {
|
func TestRadosTestSuite(t *testing.T) {
|
||||||
suite.Run(t, new(RadosTestSuite))
|
tsuite.Run(t, new(RadosTestSuite))
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ func (c *debugHTTPClient) Do(req *http.Request) (*http.Response, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestRadosGWTestSuite(t *testing.T) {
|
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
|
// S3Agent wraps the s3.S3 structure to allow for wrapper methods
|
||||||
|
Loading…
Reference in New Issue
Block a user