High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: medium test (#32418)
Jason Rasmussen9d8435973ef3
diff --git a/server/test/medium/specs/sync/sync-album-user.spec.ts b/server/test/medium/specs/sync/sync-album-user.spec.tsindex b5c9948ad3..71ec278a1b 100644--- a/server/test/medium/specs/sync/sync-album-user.spec.ts+++ b/server/test/medium/specs/sync/sync-album-user.spec.ts@@ -151,26 +151,29 @@ describe(SyncRequestType.AlbumUsersV1, () => {});const response = await ctx.syncStream(auth, [SyncRequestType.AlbumUsersV1]);- expect(response).toEqual([- {- ack: expect.any(String),- data: expect.objectContaining({- albumId: album.id,- role: AlbumUserRole.Owner,- }),- type: SyncEntityType.AlbumUserV1,- },- {- ack: expect.any(String),- data: expect.objectContaining({- albumId: albumUser.albumId,- role: albumUser.role,- userId: albumUser.userId,- }),- type: SyncEntityType.AlbumUserV1,- },- expect.objectContaining({ type: SyncEntityType.SyncCompleteV1 }),- ]);+ expect(response).toHaveLength(3);+ expect(response).toEqual(+ expect.arrayContaining([+ {+ ack: expect.any(String),+ data: expect.objectContaining({+ albumId: album.id,+ role: AlbumUserRole.Owner,+ }),+ type: SyncEntityType.AlbumUserV1,+ },+ {+ ack: expect.any(String),+ data: expect.objectContaining({+ albumId: albumUser.albumId,+ role: albumUser.role,+ userId: albumUser.userId,+ }),+ type: SyncEntityType.AlbumUserV1,+ },+ expect.objectContaining({ type: SyncEntityType.SyncCompleteV1 }),+ ]),+ );await ctx.syncAckAll(auth, response);await ctx.assertSyncIsComplete(auth, [SyncRequestType.AlbumUsersV1]);@@ -260,6 +263,7 @@ describe(SyncRequestType.AlbumUsersV1, () => {const { user: user2 } = await ctx.newUser();const { album: album1 } = await ctx.newAlbum({ ownerId: user.id });const { album: album2 } = await ctx.newAlbum({ ownerId: user.id });+ await wait(2);// backfill album userawait ctx.newAlbumUser({ albumId: album1.id, userId: user1.id, role: AlbumUserRole.Editor });await wait(2);