Skip to content

Commit

Permalink
chore: set test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed Mar 2, 2024
1 parent 67462ff commit d8be77c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const log = v => console.log(v) || v;
const bucketName = (name, accountId) => log(`${PREFIX}-${accountId}-${name}`);
const documentClient = new AWS.DynamoDB.DocumentClient();

jest.setTimeout(10000);
jest.setTimeout(30000);

const Joi = frisby.Joi;

Expand Down
8 changes: 2 additions & 6 deletions packages/laconia-acceptance-test/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,7 @@ resources:
KeySchema:
- AttributeName: "orderId"
KeyType: "HASH"
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
BillingMode: PAY_PER_REQUEST
TableName: ${self:custom.orderDynamoDbBatchTableName}
ConnectionTable:
Type: "AWS::DynamoDB::Table"
Expand All @@ -259,7 +257,5 @@ resources:
KeySchema:
- AttributeName: "connectionId"
KeyType: "HASH"
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
BillingMode: PAY_PER_REQUEST
TableName: ${self:custom.connectionDynamoDbTableName}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const AWS_REGION = process.env.AWS_REGION || "eu-west-1";
AWSMock.setSDKInstance(AWS);
AWS.config.credentials = new AWS.Credentials("fake", "fake", "fake");

jest.setTimeout(30000);

describe("dynamodb batch handler", () => {
const dynamoLocalPort = 8000;
const dynamoDbOptions = {
Expand Down

0 comments on commit d8be77c

Please sign in to comment.