Skip to content

Commit bdd32e3

Browse files
committed
chore: fix some minor issues
1 parent 4bcd956 commit bdd32e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2089,7 +2089,7 @@ class Connection extends EventEmitter {
20892089
this.socketHandlingForSendPreLogin(socket);
20902090
})().catch((err) => {
20912091
this.clearConnectTimer();
2092-
if (err.name === 'AbortError' || err.message === 'AbortError') {
2092+
if (err === signal.reason) {
20932093
return;
20942094
}
20952095

test/integration/connection-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ describe('Encrypt Test', function() {
625625
connection.execSql(request);
626626
});
627627
}
628-
it.only('Timeout handled correctly with strict encryption enabled (TDS 8.0)', function(done) {
628+
it ('Timeout handled correctly with strict encryption enabled (TDS 8.0)', function(done) {
629629
const config = getConfig();
630630
supportsTds8(config, async (err, supportsTds8) => {
631631
if (err) {

0 commit comments

Comments
 (0)