diff --git a/files/multifilereader_test.go b/files/multifilereader_test.go index 34cdd151e..e36788a91 100644 --- a/files/multifilereader_test.go +++ b/files/multifilereader_test.go @@ -30,11 +30,7 @@ func TestMultiFileReaderToMultiFile(t *testing.T) { t.Fatal(err) } - md, ok := mf.(Directory) - if !ok { - t.Fatal("Expected a directory") - } - it := md.Entries() + it := mf.Entries() if !it.Next() || it.Name() != "beep.txt" { t.Fatal("iterator didn't work as expected") @@ -80,11 +76,7 @@ func TestMultiFileReaderToMultiFileSkip(t *testing.T) { t.Fatal(err) } - md, ok := mf.(Directory) - if !ok { - t.Fatal("Expected a directory") - } - it := md.Entries() + it := mf.Entries() if !it.Next() || it.Name() != "beep.txt" { t.Fatal("iterator didn't work as expected")