Don't warn about failed ignores if folder unhealthy (fixes #2630)
This commit is contained in:
@@ -514,13 +514,11 @@ func TestIgnores(t *testing.T) {
|
||||
t.Error("No error")
|
||||
}
|
||||
|
||||
// Invalid path, marker should be missing, hence returns an error.
|
||||
m.AddFolder(config.FolderConfiguration{ID: "fresh", RawPath: "XXX"})
|
||||
ignores, _, err = m.GetIgnores("fresh")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
if len(ignores) > 0 {
|
||||
t.Errorf("Expected no ignores, got: %v", ignores)
|
||||
if err == nil {
|
||||
t.Error("No error")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user