diff --git a/test/Elastic.Apm.Feature.Tests/CloudProviderSteps.cs b/test/Elastic.Apm.Feature.Tests/CloudProviderSteps.cs index 51d58267c..d6a3deb16 100644 --- a/test/Elastic.Apm.Feature.Tests/CloudProviderSteps.cs +++ b/test/Elastic.Apm.Feature.Tests/CloudProviderSteps.cs @@ -40,7 +40,6 @@ public CloudProviderSteps( unitTestRuntimeProvider.TestIgnore("Skipping azure function feature tests on Github Actions"); } - [Given(@"an agent configured with")] [Scope(Feature = "Extracting Metadata for Azure App Service")] public void AzureAppService_GivenAnAgentConfiguredWith(Table table) => Helper_GivenAnAgentConfiguredWith(table); @@ -131,10 +130,7 @@ public void CloudMetadataKeyEqualsValue(string key, string value) var token = payloadCollector.Payloads[0].Body[0].SelectToken($"metadata.cloud.{key}"); token.Should().NotBeNull(); - var prop = token as JProperty; - prop.Should().NotBeNull(); - prop.Value().Should().Be(value); - + token.Value().Should().Be(value); } } }