mirror of https://github.com/spf13/afero.git
should work now with the changes from #56
This commit is contained in:
parent
a02a38ffba
commit
aa1ab255d2
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue