From 20a1cb3814aa87944f531170c1656cb2dad60ab4 Mon Sep 17 00:00:00 2001 From: jdomnitz <380352+jdomnitz@users.noreply.github.com> Date: Tue, 9 Jul 2024 00:45:32 -0400 Subject: [PATCH] Fix incorrect test --- test/ServiceDiscoveryTest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/ServiceDiscoveryTest.cs b/test/ServiceDiscoveryTest.cs index f0fa4ce..21ecccc 100644 --- a/test/ServiceDiscoveryTest.cs +++ b/test/ServiceDiscoveryTest.cs @@ -562,6 +562,9 @@ public void Announce_ContainsResourceRecords() mdns.AnswerReceived += (s, e) => { var msg = e.Message; + //Remove Cache-Flush bit + foreach (var answer in e.Message.Answers) + answer.Class = (DnsClass)((ushort)answer.Class & ~MulticastService.CACHE_FLUSH_BIT); foreach (var r in service.Resources) { if (!msg.Answers.Contains(r))