diff --git a/builtin/providers/aws/cloudfront_distribution_configuration_structure_test.go b/builtin/providers/aws/cloudfront_distribution_configuration_structure_test.go index 4b3f93e49..f06230b81 100644 --- a/builtin/providers/aws/cloudfront_distribution_configuration_structure_test.go +++ b/builtin/providers/aws/cloudfront_distribution_configuration_structure_test.go @@ -462,8 +462,11 @@ func TestCloudFrontStructure_expandLambdaFunctionAssociations(t *testing.T) { if len(lfa.Items) != 2 { t.Fatalf("Expected Items to be len 2, got %v", len(lfa.Items)) } - if et := "origin-response"; *lfa.Items[0].EventType != et { - t.Fatalf("Expected first Item's EventType to be len %q, got %q", et, *lfa.Items[0].EventType) + if et := "viewer-request"; *lfa.Items[0].EventType != et { + t.Fatalf("Expected first Item's EventType to be %q, got %q", et, *lfa.Items[0].EventType) + } + if et := "origin-response"; *lfa.Items[1].EventType != et { + t.Fatalf("Expected second Item's EventType to be %q, got %q", et, *lfa.Items[1].EventType) } }