mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
Catch nil from List() in tests
This commit is contained in:
parent
51b24a1dc6
commit
492362ec7d
@ -99,6 +99,10 @@ func (is *Items) Done(t *testing.T) {
|
||||
func CheckListingWithPrecision(t *testing.T, f fs.Fs, items []Item, precision time.Duration) {
|
||||
is := NewItems(items)
|
||||
for obj := range f.List() {
|
||||
if obj == nil {
|
||||
t.Errorf("Unexpected nil in List()")
|
||||
continue
|
||||
}
|
||||
is.Find(t, obj, precision)
|
||||
}
|
||||
is.Done(t)
|
||||
|
Loading…
Reference in New Issue
Block a user