Skip to content

Commit

Permalink
Fix typeof check in test-pool.js
Browse files Browse the repository at this point in the history
  • Loading branch information
forivall committed Sep 7, 2016
1 parent 06e8f85 commit 212de93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-pool.js
Expand Up @@ -37,7 +37,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 212de93

Please sign in to comment.