fix for OsFs w/ lower timestamp resolution

This commit is contained in:
Hanno Hecker 2016-01-24 08:02:52 +01:00 committed by Steve Francia
parent 1f64d06ebe
commit a5d3e7c8ca
1 changed files with 2 additions and 2 deletions

View File

@ -241,8 +241,8 @@ func TestWriteCloseTime(t *testing.T) {
time.Sleep(2 * time.Second)
case "darwin":
time.Sleep(1 * time.Second)
default:
time.Sleep(10 * time.Millisecond)
default: // depending on the FS, this may work with < 1 second, on my old ext3 it does not
time.Sleep(1 * time.Second)
}
_, err = f.Write([]byte("test"))