Fix for test leaking a DH crypto object

Error was: net.psforever.crypto.CryptoInterface.CryptoDHState: class not closed.
memory leaked
This commit is contained in:
Chord 2017-03-01 19:38:47 -05:00
parent b4d87bac54
commit d14df59d39

View file

@ -109,14 +109,12 @@ class CryptoInterfaceTest extends Specification { args(stopOnFail = true)
"safely handle multiple starts" in {
val dontCare = ByteVector.fill(16)(0x42)
var dh = new CryptoDHState()
val dh = new CryptoDHState()
dh.start()
dh.start() must throwA[IllegalStateException]
dh.close
dh = new CryptoDHState()
ok
}