We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CryptoStreamUtilsSuite
sameElements
1 parent 2004df7 commit 67641a8Copy full SHA for 67641a8
core/src/test/scala/org/apache/spark/security/CryptoStreamUtilsSuite.scala
@@ -112,7 +112,7 @@ class CryptoStreamUtilsSuite extends SparkFunSuite {
112
bytes.toByteArray()
113
}.collect()(0)
114
115
- assert(content != encrypted)
+ assert(!content.getBytes(UTF_8).sameElements(encrypted))
116
117
val in = CryptoStreamUtils.createCryptoInputStream(new ByteArrayInputStream(encrypted),
118
sc.conf, SparkEnv.get.securityManager.getIOEncryptionKey().get)
0 commit comments