Commit 6aaf89f9 authored by Aaron Jacobs's avatar Aaron Jacobs

Fixed MemFSTest.Chtimes.

Linux apparently doesn't like setting atime to time.Time{}.
parent 2f7eff59
......@@ -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.
......
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