From ba5d259c9fe832032c3e425398eca12bbeb5c090 Mon Sep 17 00:00:00 2001 From: Andy Davis Date: Thu, 26 Oct 2017 19:00:29 -0500 Subject: [PATCH] Speed up test for MD5 implementation equivalence Test was performing 1M iterations over a 10K byte field. This was taking 60-90s depending on the machine. I dropped this to 2K iterations. --- .../roundhouse.tests/cryptography/CryptographicServiceSpecs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/roundhouse.tests/cryptography/CryptographicServiceSpecs.cs b/product/roundhouse.tests/cryptography/CryptographicServiceSpecs.cs index 4219222b..76f0028c 100644 --- a/product/roundhouse.tests/cryptography/CryptographicServiceSpecs.cs +++ b/product/roundhouse.tests/cryptography/CryptographicServiceSpecs.cs @@ -55,7 +55,7 @@ public void should_be_able_to_pass_text_and_get_back_a_base_64_hash_of_the_text( [TestFixture] public class when_using_an_unofficial_md5_implementation { - const int passes = 1000000; + const int passes = 2000; const int max_len = 10240; private int seed = Environment.TickCount;