mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-11 22:44:37 +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
1 changed files with 1 additions and 3 deletions
|
|
@ -109,14 +109,12 @@ class CryptoInterfaceTest extends Specification { args(stopOnFail = true)
|
||||||
|
|
||||||
"safely handle multiple starts" in {
|
"safely handle multiple starts" in {
|
||||||
val dontCare = ByteVector.fill(16)(0x42)
|
val dontCare = ByteVector.fill(16)(0x42)
|
||||||
var dh = new CryptoDHState()
|
val dh = new CryptoDHState()
|
||||||
|
|
||||||
dh.start()
|
dh.start()
|
||||||
dh.start() must throwA[IllegalStateException]
|
dh.start() must throwA[IllegalStateException]
|
||||||
dh.close
|
dh.close
|
||||||
|
|
||||||
dh = new CryptoDHState()
|
|
||||||
|
|
||||||
ok
|
ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue