-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Disable Aes test TestDecryptorReusability when quirk disabled or old netfx #18945
Conversation
@@ -13,6 +13,10 @@ public static class DecryptorReusabilty | |||
[Fact] | |||
public static void TestDecryptorReusability() | |||
{ | |||
// See https://github.com/dotnet/corefx/issues/18903 for details | |||
if (!ShouldDescriptorBeReusable()) | |||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should do this with a ConditionalFact instead, e.g.
[ConditionalFact(nameof(ShouldDescriptorBeReusable))]
That way it'll show as a skipped test in the output if the check fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't know about this - thanks @stephentoub !
@bartonjs PTAL |
@@ -10,7 +10,8 @@ namespace System.Security.Cryptography.Encryption.Aes.Tests | |||
|
|||
public static class DecryptorReusabilty | |||
{ | |||
[Fact] | |||
// See https://github.com/dotnet/corefx/issues/18903 for details | |||
[ConditionalFact(nameof(ShouldDescriptorBeReusable))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Decryptor not Descriptor 🤦♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, please fix your self-identified typo :)
Fixes: https://github.com/dotnet/corefx/issues/18903
I've manually tested the test is still being run on Core