Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Feb 19, 2025
1 parent 784e87c commit a5d0d0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/meta/random_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ func (m *fsMachine) SetAmtime(t *rapid.T) {
flag |= SetAttrMtime
}
st2 := m.amtime(inode, flag, atime, mtime, oattr)
st := m.meta.SetAttr(m.ctx, inode, flag, 0, attr)
st := m.meta.SetAttr(m.ctx, inode, 0, flag, 0, attr)
if st != st2 {
t.Fatalf("expect %s but got %s", st2, st)
}
Expand Down Expand Up @@ -1838,7 +1838,7 @@ func (m *fsMachine) chmod(inode Ino, mode uint16) syscall.Errno {
func (m *fsMachine) Chmod(t *rapid.T) {
inode := m.pickNode(t)
mode := rapid.Uint16Range(0, 01777).Draw(t, "mode")
st := m.meta.SetAttr(m.ctx, inode, SetAttrMode, 0, &Attr{Mode: mode})
st := m.meta.SetAttr(m.ctx, inode, 0, SetAttrMode, 0, &Attr{Mode: mode})
st2 := m.chmod(inode, mode)
if st != st2 {
t.Fatalf("expect %s but got %s", st2, st)
Expand Down Expand Up @@ -1882,7 +1882,7 @@ func (m *fsMachine) Chown(t *rapid.T) {
if gid < 10 {
flag |= SetAttrGID
}
st := m.meta.SetAttr(m.ctx, inode, flag, 0, &Attr{Uid: uid, Gid: gid})
st := m.meta.SetAttr(m.ctx, inode, 0, flag, 0, &Attr{Uid: uid, Gid: gid})
st2 := m.chown(inode, flag, uid, gid)
if st != st2 {
t.Fatalf("expect %s but got %s", st2, st)
Expand Down

0 comments on commit a5d0d0f

Please sign in to comment.