diff --git a/Vostok.ServiceDiscovery.Tests/ReplicaInfoBuilder_Tests.cs b/Vostok.ServiceDiscovery.Tests/ReplicaInfoBuilder_Tests.cs index fe2773b..a2c91af 100644 --- a/Vostok.ServiceDiscovery.Tests/ReplicaInfoBuilder_Tests.cs +++ b/Vostok.ServiceDiscovery.Tests/ReplicaInfoBuilder_Tests.cs @@ -63,7 +63,8 @@ public void Should_be_configurable() .SetCommitHash("ASDF") .SetReleaseDate("released now") .SetDependencies(new List {"dep-a", "dep-b"}) - .SetTags(new TagCollection{"tag1", {"tag2", "value"}}), false); + .SetTags(new TagCollection{"tag1", {"tag2", "value"}}) + .SetHostnameProvider(useFqdn => "newHostName"), false); info.ReplicaInfo.Environment.Should().Be("custom-environment"); info.ReplicaInfo.Application.Should().Be("Vostok.App.1"); @@ -82,6 +83,8 @@ public void Should_be_configurable() properties[ReplicaInfoKeys.CommitHash].Should().Be("ASDF"); properties[ReplicaInfoKeys.ReleaseDate].Should().Be("released now"); properties[ReplicaInfoKeys.Dependencies].Should().Be("dep-a;dep-b"); + + properties[ReplicaInfoKeys.Host].Should().Be("newHostName"); } [Test]