Skip to content

Commit e0e4c06

Browse files
committedNov 6, 2024·
Update TerminateAtAnchorTest.cs
1 parent 340b021 commit e0e4c06

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎_tests/Udap.Common.Tests/TerminateAtAnchorTest.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,11 @@ public void TestAnchorTermination_Fail(X509VerificationFlags verificationFlags)
8787
+ "\r\n" + string.Join("\r\n", diagnosticsChainValidator.ActualUntrustedMessages));
8888

8989
diagnosticsChainValidator.ActualErrorMessages.Count.Should().Be(0);
90-
diagnosticsChainValidator.ActualProblemMessages.Should()
91-
.ContainMatch("Trust ERROR The revocation function was unable to check revocation for the certificate*");
90+
91+
diagnosticsChainValidator.ActualProblemMessages.Should().Contain(message =>
92+
message.Contains("Trust ERROR The revocation function was unable to check revocation for the certificate") ||
93+
message.Contains("Trust ERROR unable to get certificate CRL")); // Some Linux experiences
94+
9295
diagnosticsChainValidator.ActualUntrustedMessages.Should().ContainMatch("Untrusted Certificate*");
9396
}
9497

0 commit comments

Comments
 (0)
Please sign in to comment.