mirror of https://github.com/spf13/afero.git
pausing during modtime test so darwin passes
This commit is contained in:
parent
205066d391
commit
300870a2d5
|
@ -234,11 +234,14 @@ func TestWriteCloseTime(t *testing.T) {
|
|||
}
|
||||
timeBefore := fi.ModTime()
|
||||
|
||||
if runtime.GOOS == "windows" {
|
||||
// sorry for the delay, but we have to make sure time advances,
|
||||
// also on non Un*x systems...
|
||||
// sorry for the delay, but we have to make sure time advances,
|
||||
// also on non Un*x systems...
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
time.Sleep(2 * time.Second)
|
||||
} else {
|
||||
case "darwin":
|
||||
time.Sleep(1 * time.Second)
|
||||
default:
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue