From f9e2e55ac8226938e2e2f38d3115b51d3616b9b9 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 3 Mar 2015 10:41:30 +1100 Subject: [PATCH] Fixed some test bugs. --- samples/memfs/memfs_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/memfs/memfs_test.go b/samples/memfs/memfs_test.go index 682a50d..f3a689d 100644 --- a/samples/memfs/memfs_test.go +++ b/samples/memfs/memfs_test.go @@ -163,9 +163,9 @@ func (t *MemFSTest) Mkdir_OneLevel() { ExpectEq(currentUid(), stat.Uid) ExpectEq(currentGid(), stat.Gid) ExpectEq(0, stat.Size) - ExpectEq(createTime, timespecToTime(stat.Atimespec)) - ExpectEq(createTime, timespecToTime(stat.Mtimespec)) - ExpectEq(createTime, timespecToTime(stat.Ctimespec)) + ExpectEq(0, timespecToTime(stat.Atimespec).Sub(createTime)) + ExpectEq(0, timespecToTime(stat.Mtimespec).Sub(createTime)) + ExpectEq(0, timespecToTime(stat.Ctimespec).Sub(createTime)) // Read the directory. entries, err := ioutil.ReadDir(dirName)