From eeb7d630465b565d75ead67126281c8d130c8d8d Mon Sep 17 00:00:00 2001 From: Xiaoyu Yao Date: Wed, 13 Mar 2019 11:50:53 -0700 Subject: [PATCH] HDDS-1087. Fix TestDefaultCertificateClient#testSignDataStream. Contributed by Xiaoyu Yao. (#596) (cherry picked from commit 86d508c7c724bd31a81066126ffc675d36d9df0a) --- .../x509/certificate/client/TestDefaultCertificateClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdds/common/src/test/java/org/apache/hadoop/hdds/security/x509/certificate/client/TestDefaultCertificateClient.java b/hadoop-hdds/common/src/test/java/org/apache/hadoop/hdds/security/x509/certificate/client/TestDefaultCertificateClient.java index 61244f45723..855c1cb5ea7 100644 --- a/hadoop-hdds/common/src/test/java/org/apache/hadoop/hdds/security/x509/certificate/client/TestDefaultCertificateClient.java +++ b/hadoop-hdds/common/src/test/java/org/apache/hadoop/hdds/security/x509/certificate/client/TestDefaultCertificateClient.java @@ -152,7 +152,7 @@ public class TestDefaultCertificateClient { @Test public void testSignDataStream() throws Exception { - String data = RandomStringUtils.random(100); + String data = RandomStringUtils.random(100, UTF); // Expect error when there is no private key to sign. LambdaTestUtils.intercept(IOException.class, "Error while " + "signing the stream",