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() {
ExpectEq("dir", fi.Name())
ExpectEq(0, fi.Size())
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())
// hello
......@@ -108,7 +108,7 @@ func (t *HelloFSTest) ReadDir_Root() {
ExpectEq("hello", fi.Name())
ExpectEq(len("Hello, world!"), fi.Size())
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())
}
......
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