From aa99b03e363fc9499846516b61c8bd764cbaf703 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 27 Feb 2015 14:09:14 +1100 Subject: [PATCH] Fixed a test bug. --- samples/hello_fs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/hello_fs_test.go b/samples/hello_fs_test.go index d74c857..2547dcf 100644 --- a/samples/hello_fs_test.go +++ b/samples/hello_fs_test.go @@ -38,7 +38,7 @@ func (t *HelloFSTest) SetUp(ti *TestInfo) { var err error // Set up a fixed, non-zero time. - t.clock.AdvanceTime(time.Now().Sub(t.clock.Now())) + t.clock.SetTime(time.Now()) // Set up a temporary directory for mounting. mountPoint, err := ioutil.TempDir("", "hello_fs_test")