From 0ee52f7faf92779c7663144b1d413ab1b1bb2e97 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Thu, 15 Jun 2017 18:02:14 -0500 Subject: [PATCH] check: test times weren't different enough Signed-off-by: Vincent Batts --- check_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_test.go b/check_test.go index c6e73d5..3acc079 100644 --- a/check_test.go +++ b/check_test.go @@ -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) }