mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4083
This commit is contained in:
parent
f0492c4eb3
commit
5521759b23
@ -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
|
// system into thinking the file has not changed. Work around it in
|
||||||
// an ugly way...
|
// an ugly way...
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
|
} else {
|
||||||
|
time.Sleep(time.Millisecond)
|
||||||
}
|
}
|
||||||
err = m.SetIgnores("default", ignores)
|
err = m.SetIgnores("default", ignores)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -975,6 +977,8 @@ func changeIgnores(t *testing.T, m *Model, expected []string) {
|
|||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS == "darwin" {
|
||||||
// see above
|
// see above
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
|
} else {
|
||||||
|
time.Sleep(time.Millisecond)
|
||||||
}
|
}
|
||||||
err = m.SetIgnores("default", expected)
|
err = m.SetIgnores("default", expected)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user