diff --git a/test/integration/Encryption.test.js b/test/integration/Encryption.test.js
index <HASH>..<HASH> 100644
--- a/test/integration/Encryption.test.js
+++ b/test/integration/Encryption.test.js
@@ -89,6 +89,7 @@ describe('decryption', () => {
 
         const openSockets = Connection.getOpen()
         if (openSockets !== 0) {
+            await Connection.closeOpen()
             throw new Error(`sockets not closed: ${openSockets}`)
         }
     })
test: Don't fail subsequent Encryption tests if previous test's sockets not closed.