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:
Livio Soares 2016-03-25 00:58:11 -04:00
parent d5b49dd4ea
commit 57195e64fe
1 changed files with 3 additions and 0 deletions

View File

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