1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-05 00:15:58 +00:00

check: test times weren't different enough

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-06-15 18:02:14 -05:00
parent abdee6fe11
commit 0ee52f7faf

View file

@ -58,8 +58,8 @@ func TestCheckKeywords(t *testing.T) {
}
// Touch a file, so the mtime changes.
now := time.Now()
if err := os.Chtimes(tmpfn, now, now); err != nil {
newtime := time.Date(2006, time.February, 1, 3, 4, 5, 0, time.UTC)
if err := os.Chtimes(tmpfn, newtime, newtime); err != nil {
t.Fatal(err)
}