From d14df59d393cd454effa99e3661b5ae2c2f35f3b Mon Sep 17 00:00:00 2001 From: Chord Date: Wed, 1 Mar 2017 19:38:47 -0500 Subject: [PATCH 1/2] Fix for test leaking a DH crypto object Error was: net.psforever.crypto.CryptoInterface.CryptoDHState: class not closed. memory leaked --- common/src/test/scala/CryptoInterfaceTest.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/test/scala/CryptoInterfaceTest.scala b/common/src/test/scala/CryptoInterfaceTest.scala index 7b75ea055..2bca544a6 100644 --- a/common/src/test/scala/CryptoInterfaceTest.scala +++ b/common/src/test/scala/CryptoInterfaceTest.scala @@ -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 } From 9a05bf7f75e22a01f96872ba518d5ca9a62bec1a Mon Sep 17 00:00:00 2001 From: Chord Date: Wed, 1 Mar 2017 20:09:55 -0500 Subject: [PATCH 2/2] Make CCov be quiet --- .codecov.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..ed4904dbe --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,2 @@ +# Too spammy for us +comment: off