mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-20 02:54:46 +00:00
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:
parent
b4d87bac54
commit
d14df59d39
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue