Commit 4380b9ba authored by Aaron Jacobs's avatar Aaron Jacobs

Fixed some test bugs.

parent 54ae602a
...@@ -100,7 +100,7 @@ func (t *HelloFSTest) ReadDir_Root() { ...@@ -100,7 +100,7 @@ func (t *HelloFSTest) ReadDir_Root() {
ExpectEq("dir", fi.Name()) ExpectEq("dir", fi.Name())
ExpectEq(0, fi.Size()) ExpectEq(0, fi.Size())
ExpectEq(os.ModeDir|0500, fi.Mode()) ExpectEq(os.ModeDir|0500, fi.Mode())
ExpectEq(t.clock.Now(), fi.ModTime()) ExpectEq(0, t.clock.Now().Sub(fi.ModTime()), "ModTime: %v", fi.ModTime())
ExpectTrue(fi.IsDir()) ExpectTrue(fi.IsDir())
// hello // hello
...@@ -108,7 +108,7 @@ func (t *HelloFSTest) ReadDir_Root() { ...@@ -108,7 +108,7 @@ func (t *HelloFSTest) ReadDir_Root() {
ExpectEq("hello", fi.Name()) ExpectEq("hello", fi.Name())
ExpectEq(len("Hello, world!"), fi.Size()) ExpectEq(len("Hello, world!"), fi.Size())
ExpectEq(0400, fi.Mode()) ExpectEq(0400, fi.Mode())
ExpectEq(t.clock.Now(), fi.ModTime()) ExpectEq(0, t.clock.Now().Sub(fi.ModTime()), "ModTime: %v", fi.ModTime())
ExpectFalse(fi.IsDir()) ExpectFalse(fi.IsDir())
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment