From e4d00a5cd4858deb7984e1d1f59418e42f96edd2 Mon Sep 17 00:00:00 2001 From: Matthew Hensley Date: Thu, 28 Mar 2024 11:18:59 -0400 Subject: [PATCH] basic test --- .../HostDetectorTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/OpenTelemetry.ResourceDetectors.Host.Tests/HostDetectorTests.cs b/test/OpenTelemetry.ResourceDetectors.Host.Tests/HostDetectorTests.cs index e6e494f6ab..dfbc989686 100644 --- a/test/OpenTelemetry.ResourceDetectors.Host.Tests/HostDetectorTests.cs +++ b/test/OpenTelemetry.ResourceDetectors.Host.Tests/HostDetectorTests.cs @@ -16,8 +16,9 @@ public void TestHostAttributes() var resourceAttributes = resource.Attributes.ToDictionary(x => x.Key, x => (string)x.Value); - Assert.Single(resourceAttributes); + Assert.Equal(2, resourceAttributes.Count); Assert.NotEmpty(resourceAttributes[HostSemanticConventions.AttributeHostName]); + Assert.NotEmpty(resourceAttributes[HostSemanticConventions.AttributeHostId]); } }