mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-25 17:45:39 +00:00
Merge pull request #131 from vbatts/firmer_test_time
check: test times weren't different enough
This commit is contained in:
commit
bc45166bfc
1 changed files with 2 additions and 2 deletions
|
@ -58,8 +58,8 @@ func TestCheckKeywords(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Touch a file, so the mtime changes.
|
// Touch a file, so the mtime changes.
|
||||||
now := time.Now()
|
newtime := time.Date(2006, time.February, 1, 3, 4, 5, 0, time.UTC)
|
||||||
if err := os.Chtimes(tmpfn, now, now); err != nil {
|
if err := os.Chtimes(tmpfn, newtime, newtime); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue