should work now with the changes from #56

This commit is contained in:
Hanno Hecker 2016-01-06 19:17:06 +01:00
parent a02a38ffba
commit aa1ab255d2
1 changed files with 3 additions and 2 deletions

View File

@ -131,12 +131,13 @@ func TestUnionCacheExpire(t *testing.T) {
fh.Close() fh.Close()
fh, _ = base.Create("/data/file.txt") 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) time.Sleep(2 * time.Second)
fh.WriteString("Another test")
fh.Close() fh.Close()
data, _ := ReadFile(ufs, "/data/file.txt") data, _ := ReadFile(ufs, "/data/file.txt")
if string(data) != "Another test" { if string(data) != "Another test" {
t.Errorf("cache time failed: <%s>", data) t.Errorf("cache time failed: <%s>", data)
} }
} }