forked from mirror/afero
fix for OsFs w/ lower timestamp resolution
This commit is contained in:
parent
1f64d06ebe
commit
a5d3e7c8ca
|
@ -241,8 +241,8 @@ func TestWriteCloseTime(t *testing.T) {
|
||||||
time.Sleep(2 * time.Second)
|
time.Sleep(2 * time.Second)
|
||||||
case "darwin":
|
case "darwin":
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
default:
|
default: // depending on the FS, this may work with < 1 second, on my old ext3 it does not
|
||||||
time.Sleep(10 * time.Millisecond)
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = f.Write([]byte("test"))
|
_, err = f.Write([]byte("test"))
|
||||||
|
|
Loading…
Reference in New Issue