mirror of https://github.com/ceph/go-ceph
rados_test.go: Improve Stat() test for non existant object name.
The test currently fails since 'RadosErrorNotFound' is not properly returned.
This commit is contained in:
parent
d5b49dd4ea
commit
57195e64fe
|
@ -399,6 +399,9 @@ func TestObjectStat(t *testing.T) {
|
|||
assert.Equal(t, uint64(len(bytes_in)), stat.Size)
|
||||
assert.NotNil(t, stat.ModTime)
|
||||
|
||||
_, err = pool.Stat("notfound")
|
||||
assert.Equal(t, err, rados.RadosErrorNotFound)
|
||||
|
||||
pool.Destroy()
|
||||
conn.Shutdown()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue