Fix most SSL negotiation packet tests being ignored

`tc` was only one variable and the tests are asynchronous, so every test was writing 'E'.
This commit is contained in:
Charmander 2020-07-26 20:54:43 -07:00
parent 1b022f8c5f
commit 3edcbb784f

View File

@ -58,8 +58,7 @@ var SSLNegotiationPacketTests = [
},
]
for (var i = 0; i < SSLNegotiationPacketTests.length; i++) {
var tc = SSLNegotiationPacketTests[i]
for (const tc of SSLNegotiationPacketTests) {
suite.test(tc.testName, function (done) {
// our fake postgres server
var socket