From a040075133f9a6402445ed90ae2d061229677a71 Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Wed, 12 Nov 2008 22:48:09 +0000
Subject: [PATCH] Fix crypto manager unit test failure.
---
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/crypto/CryptoManagerTestCase.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/crypto/CryptoManagerTestCase.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/crypto/CryptoManagerTestCase.java
index 87eb653..7da0ca9 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/crypto/CryptoManagerTestCase.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/crypto/CryptoManagerTestCase.java
@@ -422,7 +422,10 @@
ConfigConstants.ATTR_CRYPTO_KEY_COMPROMISED_TIME + ": "
+ compromisedTime);
}
-
+ //Wait so the above asynchronous modification can be applied. The crypto
+ //manager's cipherKeyEntryCache needs to be updated before the encrypt()
+ //method is called below.
+ Thread.sleep(1000);
// Use the transformation and key length again. A new cipher key
// should be produced.
final byte[] cipherText2 = cm.encrypt(cipherTransformationName,
--
Gitblit v1.10.0