Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
simulot committed May 20, 2024
1 parent 1acd3c8 commit f8e7b42
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions immich/e2e_asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func checkImmich(t *testing.T, host, key, _ string) {
t.Errorf("can't connect to %s: %s", host, err)
}
ctx := context.Background()
uInfo, err := ic.ValidateConnection(ctx)
_, err = ic.ValidateConnection(ctx)

stat, err := ic.GetAssetStatistics(ctx)
if err != nil {
Expand Down Expand Up @@ -105,11 +105,7 @@ func checkImmich(t *testing.T, host, key, _ string) {
writeFile(path.Join("DATA", "allAssets.log"), all)
t.Logf("paginatedCounts: %+v", paginatedCounts)
t.Logf("allCounts: %+v", allCounts)
for _, u := range stat.UsageByUser {
if u.UserID == uInfo.ID {
t.Logf("ServerStats: IMAGE:%d VIDEO:%d", u.Photos, u.Videos)
}
}
t.Logf("ServerStats: IMAGE:%d VIDEO:%d", stat.Images, stat.Videos)

compareAssets(t, paginated, all)
}
Expand Down

0 comments on commit f8e7b42

Please sign in to comment.