From 3314b7615e81003ed705eefb8f422c3c29089b20 Mon Sep 17 00:00:00 2001 From: martincostello Date: Fri, 1 Dec 2023 16:11:52 +0000 Subject: [PATCH] Exit early if no request Ids No point in trying to query if there's nothing to query. --- .../CloudWatchLogsFixture.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/LondonTravel.Skill.EndToEndTests/CloudWatchLogsFixture.cs b/test/LondonTravel.Skill.EndToEndTests/CloudWatchLogsFixture.cs index 83f2415f..d7acbac5 100644 --- a/test/LondonTravel.Skill.EndToEndTests/CloudWatchLogsFixture.cs +++ b/test/LondonTravel.Skill.EndToEndTests/CloudWatchLogsFixture.cs @@ -15,6 +15,11 @@ public class CloudWatchLogsFixture(IMessageSink diagnosticMessageSink) : IAsyncL public async Task DisposeAsync() { + if (RequestIds.Count < 1) + { + return; + } + var credentials = AwsConfiguration.GetCredentials(); string functionName = AwsConfiguration.FunctionName; string regionName = AwsConfiguration.RegionName;