Skip to content

Commit

Permalink
Fix incorrect test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdomnitz committed Jul 9, 2024
1 parent c5ad044 commit 20a1cb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/ServiceDiscoveryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 20a1cb3

Please sign in to comment.