diff --git a/tests/test-pool.js b/tests/test-pool.js index 183939f72..6c5446936 100644 --- a/tests/test-pool.js +++ b/tests/test-pool.js @@ -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