Fixed MemFSTest.Chtimes.

Linux apparently doesn't like setting atime to time.Time{}.
geesefs-0-30-9
Aaron Jacobs 2015-03-16 13:03:15 +11:00
parent 2f7eff5981
commit 6aaf89f972
1 changed files with 1 additions and 1 deletions

View File

@ -1083,7 +1083,7 @@ func (t *MemFSTest) Chtimes() {
// Chtimes it.
expectedMtime := time.Now().Add(123 * time.Second).Round(time.Second)
err = os.Chtimes(fileName, time.Time{}, expectedMtime)
err = os.Chtimes(fileName, time.Now(), expectedMtime)
AssertEq(nil, err)
// Stat it.