From 212de93e01b2b2d64cf19736808aae3472e40567 Mon Sep 17 00:00:00 2001 From: Jordan Klassen Date: Tue, 6 Sep 2016 18:21:52 -0700 Subject: [PATCH] Fix typeof check in test-pool.js --- tests/test-pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-pool.js b/tests/test-pool.js index f343081eb..0cc33f4a1 100644 --- a/tests/test-pool.js +++ b/tests/test-pool.js @@ -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