Skip to content

Commit

Permalink
Update ResolverTests.cs
Browse files Browse the repository at this point in the history
DoH as resolver returns a trailing . on the mailservers
  • Loading branch information
markvantilburg authored Dec 19, 2024
1 parent ee1dbd1 commit 8e78414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BusinessMonitor.MailTools.Test/ResolverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void TestMailLookup()
var records = resolver.GetMailRecords("businessmonitor.nl");

Assert.That(records.Length, Is.GreaterThan(0));
Assert.That(records.Any(x => x.EndsWith("mail.protection.outlook.com")), Is.True);
Assert.That(records, Has.Some.Matches<string>(x => x.EndsWith("mail.protection.outlook.com") || x.EndsWith("mail.protection.outlook.com.")));
}
}
}

0 comments on commit 8e78414

Please sign in to comment.