Fixed some test bugs.
parent
01878af39a
commit
f9e2e55ac8
|
@ -163,9 +163,9 @@ func (t *MemFSTest) Mkdir_OneLevel() {
|
||||||
ExpectEq(currentUid(), stat.Uid)
|
ExpectEq(currentUid(), stat.Uid)
|
||||||
ExpectEq(currentGid(), stat.Gid)
|
ExpectEq(currentGid(), stat.Gid)
|
||||||
ExpectEq(0, stat.Size)
|
ExpectEq(0, stat.Size)
|
||||||
ExpectEq(createTime, timespecToTime(stat.Atimespec))
|
ExpectEq(0, timespecToTime(stat.Atimespec).Sub(createTime))
|
||||||
ExpectEq(createTime, timespecToTime(stat.Mtimespec))
|
ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(createTime))
|
||||||
ExpectEq(createTime, timespecToTime(stat.Ctimespec))
|
ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime))
|
||||||
|
|
||||||
// Read the directory.
|
// Read the directory.
|
||||||
entries, err := ioutil.ReadDir(dirName)
|
entries, err := ioutil.ReadDir(dirName)
|
||||||
|
|
Loading…
Reference in New Issue