From 3d3a324055cf7d90d0ce50f47893401ca81c0e42 Mon Sep 17 00:00:00 2001 From: Roy Scheeren Date: Thu, 19 Dec 2024 14:44:27 +0100 Subject: [PATCH] refactor(envited.ascs.digital): update timeout Signed-off-by: Roy Scheeren --- apps/envited.ascs.digital/listener/listener.test.ts | 8 ++++++-- .../modules/UploadedAsset/UploadedAsset.tsx | 1 + apps/envited.ascs.digital/stacks/Envited.ts | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/envited.ascs.digital/listener/listener.test.ts b/apps/envited.ascs.digital/listener/listener.test.ts index 29c8cc53..7e8667c8 100644 --- a/apps/envited.ascs.digital/listener/listener.test.ts +++ b/apps/envited.ascs.digital/listener/listener.test.ts @@ -36,7 +36,9 @@ describe('createLocalCopy', () => { send: jest.fn().mockResolvedValue({} as any), } as any - await expect(SUT.createLocalCopy({ s3Client: s3ClientStub, downloadFile: downloadFileMock })(cid)).rejects.toThrow('No data') + await expect(SUT.createLocalCopy({ s3Client: s3ClientStub, downloadFile: downloadFileMock })(cid)).rejects.toThrow( + 'No data', + ) }) it('should throw an error if the file is not downloaded correctly', async () => { @@ -47,6 +49,8 @@ describe('createLocalCopy', () => { send: jest.fn().mockResolvedValue({} as any), } as any - await expect(SUT.createLocalCopy({ s3Client: s3ClientStub, downloadFile: downloadFileMock })(cid)).rejects.toThrow('Error') + await expect(SUT.createLocalCopy({ s3Client: s3ClientStub, downloadFile: downloadFileMock })(cid)).rejects.toThrow( + 'Error', + ) }) }) diff --git a/apps/envited.ascs.digital/modules/UploadedAsset/UploadedAsset.tsx b/apps/envited.ascs.digital/modules/UploadedAsset/UploadedAsset.tsx index ee49e556..591c1cd1 100644 --- a/apps/envited.ascs.digital/modules/UploadedAsset/UploadedAsset.tsx +++ b/apps/envited.ascs.digital/modules/UploadedAsset/UploadedAsset.tsx @@ -69,6 +69,7 @@ export const UploadedAsset: FC = ({ assetIdx, asset }) => { equals(assetIdx)(0) ? '' : 'border-t border-gray-200' } hidden px-3 py-3.5 text-sm text-gray-500 lg:table-cell`} > + {assetStatus} {match(assetStatus) .with(AssetStatus.processing, () => (
diff --git a/apps/envited.ascs.digital/stacks/Envited.ts b/apps/envited.ascs.digital/stacks/Envited.ts index bbfb3b0b..4029f774 100644 --- a/apps/envited.ascs.digital/stacks/Envited.ts +++ b/apps/envited.ascs.digital/stacks/Envited.ts @@ -109,6 +109,8 @@ export default function Envited({ stack }: StackContext) { copyFiles: [{ from: 'common/aws/handlers/processAssetUpload/schemas' }], securityGroups: [sg], vpc, + timeout: 60, + memorySize: 1024, }, events: ['object_created_put'], },