From 5521759b23b05ecf5c3cb73ee633370bb8de06a0 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Thu, 6 Apr 2017 09:55:54 +0000 Subject: [PATCH] lib/model: TestIgnores: Add ms sleep on all platforms (ref #3986 #3996) GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4083 --- lib/model/model_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/model/model_test.go b/lib/model/model_test.go index 839ab44f..a3b2a277 100644 --- a/lib/model/model_test.go +++ b/lib/model/model_test.go @@ -957,6 +957,8 @@ func changeIgnores(t *testing.T, m *Model, expected []string) { // system into thinking the file has not changed. Work around it in // an ugly way... time.Sleep(time.Second) + } else { + time.Sleep(time.Millisecond) } err = m.SetIgnores("default", ignores) if err != nil { @@ -975,6 +977,8 @@ func changeIgnores(t *testing.T, m *Model, expected []string) { if runtime.GOOS == "darwin" { // see above time.Sleep(time.Second) + } else { + time.Sleep(time.Millisecond) } err = m.SetIgnores("default", expected) if err != nil {