mirror of https://github.com/ceph/go-ceph
rados: add test coverage for failure to open io context
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
dd1e25e5a4
commit
b8f04da105
|
@ -1150,6 +1150,12 @@ func (suite *RadosTestSuite) TestOmapOnNonexistentObjectError() {
|
|||
assert.Equal(suite.T(), err, RadosErrorNotFound)
|
||||
}
|
||||
|
||||
func (suite *RadosTestSuite) TestOpenIOContextInvalidPool() {
|
||||
ioctx, err := suite.conn.OpenIOContext("cmartel")
|
||||
require.Error(suite.T(), err)
|
||||
require.Nil(suite.T(), ioctx)
|
||||
}
|
||||
|
||||
func TestRadosTestSuite(t *testing.T) {
|
||||
suite.Run(t, new(RadosTestSuite))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue