Skip to content

Commit

Permalink
Fix most SSL negotiation packet tests being ignored
Browse files Browse the repository at this point in the history
`tc` was only one variable and the tests are asynchronous, so every test was writing 'E'.
  • Loading branch information
charmander committed Jul 27, 2020
1 parent 1b022f8 commit 3edcbb7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/pg/test/unit/connection/error-tests.js
Expand Up @@ -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
Expand Down

0 comments on commit 3edcbb7

Please sign in to comment.