Skip to content

Commit 286041b

Browse files
committed
Fix a test issue appearing in Node 12
1 parent f564da5 commit 286041b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/poolPing.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ describe("73. poolPing.js", function() {
139139
try {
140140
pool.poolPingInterval = newInterval;
141141
} catch(err) {
142-
should.exist(err);
143-
(err.message).should.equal("Cannot assign to read only property 'poolPingInterval' of object '#<Pool>'");
142+
should.strictEqual(err.name, "TypeError");
144143
}
145144
cb();
146145

0 commit comments

Comments
 (0)