Skip to content

Commit 3edcbb7

Browse files
committedJul 27, 2020
Fix most SSL negotiation packet tests being ignored
`tc` was only one variable and the tests are asynchronous, so every test was writing 'E'.
1 parent 1b022f8 commit 3edcbb7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎packages/pg/test/unit/connection/error-tests.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ var SSLNegotiationPacketTests = [
5858
},
5959
]
6060

61-
for (var i = 0; i < SSLNegotiationPacketTests.length; i++) {
62-
var tc = SSLNegotiationPacketTests[i]
61+
for (const tc of SSLNegotiationPacketTests) {
6362
suite.test(tc.testName, function (done) {
6463
// our fake postgres server
6564
var socket

0 commit comments

Comments
 (0)
Please sign in to comment.