Skip to content

Commit

Permalink
Fix TestLocalAssets
Browse files Browse the repository at this point in the history
  • Loading branch information
simulot committed Jun 23, 2024
1 parent 1f883f2 commit f851213
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion browser/files/localassets.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,5 @@ func (la *LocalAssetBrowser) ReadMetadataFromFile(a *browser.LocalAssetFile) err
if err == nil {
a.DateTaken = m.DateTaken
}
return err
return nil
}
5 changes: 5 additions & 0 deletions browser/files/localassets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ func TestLocalAssets(t *testing.T) {
b.SetSupportedMedia(immich.DefaultSupportedMedia)
b.SetWhenNoDate("FILE")

err = b.Prepare(ctx)
if err != nil {
t.Error(err)
}

results := []string{}
for a := range b.Browse(ctx) {
results = append(results, a.FileName)
Expand Down

0 comments on commit f851213

Please sign in to comment.