mirror of
https://github.com/ceph/go-ceph
synced 2024-12-27 00:32:08 +00:00
rados: check errors returned by Write calls
Don't ignore errors returned by ioctx Write function calls. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
38adf053dd
commit
c4f8f0445a
@ -230,7 +230,8 @@ func (suite *RadosTestSuite) TestGetClusterStats() {
|
||||
buf := make([]byte, 1<<20)
|
||||
for i := 0; i < 10; i++ {
|
||||
objname := suite.GenObjectName()
|
||||
suite.ioctx.Write(objname, buf, 0)
|
||||
err = suite.ioctx.Write(objname, buf, 0)
|
||||
assert.NoError(suite.T(), err)
|
||||
}
|
||||
|
||||
// wait a while for the stats to change
|
||||
@ -560,7 +561,8 @@ func (suite *RadosTestSuite) TestGetPoolStats() {
|
||||
buf := make([]byte, 1<<20)
|
||||
for i := 0; i < 10; i++ {
|
||||
oid := suite.GenObjectName()
|
||||
suite.ioctx.Write(oid, buf, 0)
|
||||
err = suite.ioctx.Write(oid, buf, 0)
|
||||
assert.NoError(suite.T(), err)
|
||||
}
|
||||
|
||||
// wait a while for the stats to change
|
||||
|
Loading…
Reference in New Issue
Block a user