Skip to content

Commit

Permalink
Merge pull request #2368 from forivall/patch-1
Browse files Browse the repository at this point in the history
Fix typeof check in test-pool.js
  • Loading branch information
simov committed Nov 18, 2016
2 parents 95b12d0 + 212de93 commit ab94c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-pool.js
Expand Up @@ -38,7 +38,7 @@ tape('forever', function(t) {
pool: {maxSockets: 1024}
}, function(err, res, body) {
// explicitly shut down the agent
if (r.agent.destroy === typeof 'function') {
if (typeof r.agent.destroy === 'function') {
r.agent.destroy()
} else {
// node < 0.12
Expand Down

0 comments on commit ab94c86

Please sign in to comment.