Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartek committed Jan 24, 2023
1 parent b0f50e1 commit 46c5d44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Check if image is appropriate for lambda container
run: |
set -e
response=$(curl -i "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}')
response=$(curl -i "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{\"maxCount\": 5}')
docker logs cgm-handler-container
echo $response
if echo $response | grep -q "error"; then
Expand Down
1 change: 1 addition & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const lambdaHandler = async (event: Record<string, unknown>) => {

const command = new SynchroniseLatestReadingsCommand({
traceId: v4(),
maxCount: event?.maxCount ? Number(event?.maxCount) : undefined,
});

const handlerResult = await commandBus.execute<
Expand Down

0 comments on commit 46c5d44

Please sign in to comment.