rados: add missing error asserts

Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
Sven Anderson 2021-09-14 15:32:14 +02:00 committed by mergify[bot]
parent bb535d6df2
commit ff75b9c2a2
1 changed files with 2 additions and 0 deletions

View File

@ -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)