Skip to content

🎥 Make videos programmatically with React

fix test for timeout integration test

Paul Kuhleecd348eff6ce
diff --git a/packages/lambda/src/shared/invoke-webhook.ts b/packages/lambda/src/shared/invoke-webhook.ts
index 8a421dde6c..26b0ebd179 100644
--- a/packages/lambda/src/shared/invoke-webhook.ts
+++ b/packages/lambda/src/shared/invoke-webhook.ts
@@ -6,8 +6,7 @@ import * as Crypto from 'crypto';
* @param payload Stringified request body to encode in the signature.
*/
export function calculateSignature(payload: string) {
- const secret =
- process.env.REMOTION_AWS_SECRET_ACCESS_KEY ?? 'INSECURE_DEFAULT_SECRET';
+ const secret = 'INSECURE_DEFAULT_SECRET';
const hmac = Crypto.createHmac('sha1', secret);
const signature = 'sha1=' + hmac.update(payload).digest('hex');
return signature;
diff --git a/packages/lambda/src/test/integration/webhooks.test.ts b/packages/lambda/src/test/integration/webhooks.test.ts
index fecd0307db..b1c3629fe3 100644
--- a/packages/lambda/src/test/integration/webhooks.test.ts
+++ b/packages/lambda/src/test/integration/webhooks.test.ts
@@ -117,7 +117,7 @@ describe('Webhooks', () => {
composition: 'react-svg',
crf: 9,
envVariables: {},
- frameRange: [0, 10],
+ frameRange: [0, 50],
framesPerLambda: 8,
imageFormat: 'png',
inputProps: {},
@@ -129,7 +129,7 @@ describe('Webhooks', () => {
proResProfile: undefined,
quality: undefined,
scale: 1,
- timeoutInMilliseconds: 1200,
+ timeoutInMilliseconds: 8500,
numberOfGifLoops: null,
everyNthFrame: 1,
concurrencyPerLambda: 1,