Do not fail on unknown files in /data

Fixes #1068
This commit is contained in:
bep
2015-04-22 18:36:07 +02:00
parent be366bfe1e
commit beb32af7a2
2 changed files with 8 additions and 3 deletions

View File

@@ -75,8 +75,8 @@ func TestDataDirUnknownFormat(t *testing.T) {
}
s := &Site{}
err := s.loadData([]source.Input{&source.InMemorySource{ByteSource: sources}})
if err == nil {
t.Fatalf("Should return an error")
if err != nil {
t.Fatalf("Should not return an error")
}
}