mirror of https://github.com/ceph/go-ceph
rados: add missing error asserts
Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
parent
bb535d6df2
commit
ff75b9c2a2
|
@ -499,6 +499,7 @@ func (suite *RadosTestSuite) TestReadWrite() {
|
|||
|
||||
bytesOut := make([]byte, len(bytesIn))
|
||||
numOut, err := suite.ioctx.Read("obj", bytesOut, 0)
|
||||
assert.NoError(suite.T(), err)
|
||||
|
||||
assert.Equal(suite.T(), numOut, len(bytesIn))
|
||||
assert.Equal(suite.T(), bytesIn, bytesOut)
|
||||
|
@ -509,6 +510,7 @@ func (suite *RadosTestSuite) TestReadWrite() {
|
|||
|
||||
bytesOut = make([]byte, len(bytesIn))
|
||||
numOut, err = suite.ioctx.Read("obj", bytesOut, 0)
|
||||
assert.NoError(suite.T(), err)
|
||||
|
||||
assert.Equal(suite.T(), numOut, len(bytesIn))
|
||||
assert.Equal(suite.T(), bytesIn, bytesOut)
|
||||
|
|
Loading…
Reference in New Issue