Skip to content

Commit f8e7b42

Browse files
committed
fix e2e test
1 parent 1acd3c8 commit f8e7b42

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

immich/e2e_asset_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func checkImmich(t *testing.T, host, key, _ string) {
6868
t.Errorf("can't connect to %s: %s", host, err)
6969
}
7070
ctx := context.Background()
71-
uInfo, err := ic.ValidateConnection(ctx)
71+
_, err = ic.ValidateConnection(ctx)
7272

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

114110
compareAssets(t, paginated, all)
115111
}

0 commit comments

Comments
 (0)