Skip to content

Commit

Permalink
refactor(envited.ascs.digital): update timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Scheeren <[email protected]>
  • Loading branch information
royscheeren committed Dec 19, 2024
1 parent 9ddf0ec commit 3d3a324
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/envited.ascs.digital/listener/listener.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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',
)
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const UploadedAsset: FC<UploadedAssetProps> = ({ 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, () => (
<div className="inline-flex gap-x-2 text-sm text-gray-500">
Expand Down
2 changes: 2 additions & 0 deletions apps/envited.ascs.digital/stacks/Envited.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
Expand Down

0 comments on commit 3d3a324

Please sign in to comment.