mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-03-09 15:30:31 +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 {
|
||||
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…
Add table
Add a link
Reference in a new issue