Skip to content

Commit fe1149b

Browse files
committed
alphabetise
1 parent 0464d4d commit fe1149b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

infrastructure/terraform/modules/backend-api/module_lambda_event_publisher.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ module "lambda_event_publisher" {
2525
}
2626

2727
lambda_env_vars = {
28-
SNS_TOPIC_ARN = coalesce(var.sns_topic_arn, aws_sns_topic.main.arn)
28+
EVENT_SOURCE = "//notify.nhs.uk/${var.component}/${var.group}/${var.environment}"
2929
ROUTING_CONFIG_TABLE_NAME = aws_dynamodb_table.routing_configuration.name
30+
SNS_TOPIC_ARN = coalesce(var.sns_topic_arn, aws_sns_topic.main.arn)
3031
TEMPLATES_TABLE_NAME = aws_dynamodb_table.templates.name
31-
EVENT_SOURCE = "//notify.nhs.uk/${var.component}/${var.group}/${var.environment}"
3232
}
3333

3434
function_s3_bucket = var.function_s3_bucket

tests/test-team/template-mgmt-event-tests/routing-config.event.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ test.describe('Event publishing - Routing Config', () => {
4545

4646
expect(submittedResponse.status()).toBe(200);
4747

48-
// Note: not ideal - but we are expecting 0 events and there can be a delay
49-
// in events arriving. We should wait for a moment
50-
// 5 seconds seems to largest delay when testing locally
48+
// 5s is longest observed delivery delay
5149
await setTimeout(5000);
5250

5351
// This would throw if a routing config event was present,

0 commit comments

Comments
 (0)