From e8b530bbb843c696f12ae4b3d6e43bc6d98a1e4d Mon Sep 17 00:00:00 2001 From: Nick Krecklow Date: Mon, 11 May 2020 04:15:23 -0500 Subject: [PATCH] remove random fail test --- lib/ping.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/ping.js b/lib/ping.js index dcdd549..1ebbedf 100644 --- a/lib/ping.js +++ b/lib/ping.js @@ -140,12 +140,6 @@ class PingController { const version = serverRegistration.getNextProtocolVersion() ping(serverRegistration, config.rates.connectTimeout, (err, resp) => { - if (Math.random() < 0.1) { - err = { - message: 'random fail' - } - resp = undefined - } if (err) { logger.log('error', 'Failed to ping %s: %s', serverRegistration.data.ip, err.message) }