mirror of
https://github.com/ceph/go-ceph
synced 2024-12-24 07:03:00 +00:00
cephfs: add test coverage for invalid file state in Fchmod
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
9a621942f3
commit
92a85b4385
@ -368,6 +368,11 @@ func TestFchmod(t *testing.T) {
|
||||
|
||||
stats, err = os.Stat(path.Join(CephMountDir, fname))
|
||||
assert.Equal(t, uint32(stats.Mode().Perm()), statsAfter)
|
||||
|
||||
// TODO use t.Run sub-tests where appropriate
|
||||
f2 := &File{}
|
||||
err = f2.Fchmod(statsAfter)
|
||||
assert.Error(t, err)
|
||||
}
|
||||
|
||||
func TestFchown(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user