From aa1ab255d255f9a5f30825f151b37fc3ffb014d4 Mon Sep 17 00:00:00 2001 From: Hanno Hecker Date: Wed, 6 Jan 2016 19:17:06 +0100 Subject: [PATCH] should work now with the changes from #56 --- union_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/union_test.go b/union_test.go index 6aaedd1..14736ff 100644 --- a/union_test.go +++ b/union_test.go @@ -131,12 +131,13 @@ func TestUnionCacheExpire(t *testing.T) { fh.Close() fh, _ = base.Create("/data/file.txt") - fh.WriteString("Another test") + // sleep some time, so we really get a different time.Now() on write... time.Sleep(2 * time.Second) + fh.WriteString("Another test") fh.Close() data, _ := ReadFile(ufs, "/data/file.txt") if string(data) != "Another test" { - t.Errorf("cache time failed: <%s>", data) + t.Errorf("cache time failed: <%s>", data) } }