Use test logger instead of log for test output

This commit is contained in:
Nick Craig-Wood
2015-12-30 09:35:25 +00:00
parent ddf39f2d57
commit afaec1a2e9
+1 -1
View File
@@ -109,7 +109,7 @@ func (is *Items) Find(t *testing.T, obj fs.Object, precision time.Duration) {
func (is *Items) Done(t *testing.T) {
if len(is.byName) != 0 {
for name := range is.byName {
log.Printf("Not found %q", name)
t.Logf("Not found %q", name)
}
t.Errorf("%d objects not found", len(is.byName))
}