more info

This commit is contained in:
Simon Frei 2020-12-10 20:19:16 +01:00
parent f690e6c768
commit ab045258ce
No known key found for this signature in database
GPG Key ID: 7C31D23ECB1006F3

View File

@ -37,10 +37,11 @@ func TestIgnoreDeleteUnignore(t *testing.T) {
basicCheck := func(fs []protocol.FileInfo) { basicCheck := func(fs []protocol.FileInfo) {
t.Helper() t.Helper()
if len(fs) != 1 { if len(fs) != 1 {
t.Fatal("expected a single index entry, got", len(fs)) t.Error("expected a single index entry, got", len(fs))
} else if fs[0].Name != file { } else if fs[0].Name != file {
t.Fatalf("expected a index entry for %v, got one for %v", file, fs[0].Name) t.Errorf("expected a index entry for %v, got one for %v", file, fs[0].Name)
} }
l.Infoln("received", fs[0])
} }
done := make(chan struct{}) done := make(chan struct{})
@ -52,7 +53,7 @@ func TestIgnoreDeleteUnignore(t *testing.T) {
fc.mut.Unlock() fc.mut.Unlock()
if err := writeFile(fss, file, contents, 0644); err != nil { if err := writeFile(fss, file, contents, 0644); err != nil {
panic(err) t.Fatal(err)
} }
m.ScanFolders() m.ScanFolders()