mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-14 07:55:07 +00:00
Merge pull request #96 from psforever/develop/chord
Fix for test leaking a DH crypto object
This commit is contained in:
commit
b6cf5aa580
2 changed files with 3 additions and 3 deletions
2
.codecov.yml
Normal file
2
.codecov.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Too spammy for us
|
||||||
|
comment: off
|
||||||
|
|
@ -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