diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-16 14:25:37 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-16 14:25:37 +0200 |
commit | 0dd079da272df8d532f0086d7c91597b43e7a143 (patch) | |
tree | 93fb2a1a063f7e70ad233117efbc52812858ad05 /server/tests | |
parent | 3758da9489b636997a3a4fad7fc1a6081737bbe0 (diff) | |
download | PeerTube-0dd079da272df8d532f0086d7c91597b43e7a143.tar.gz PeerTube-0dd079da272df8d532f0086d7c91597b43e7a143.tar.zst PeerTube-0dd079da272df8d532f0086d7c91597b43e7a143.zip |
Update standard -> 10
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/real-world/real-world.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/tests/real-world/real-world.js b/server/tests/real-world/real-world.js index 21f0732d0..3ac13f053 100644 --- a/server/tests/real-world/real-world.js +++ b/server/tests/real-world/real-world.js | |||
@@ -102,7 +102,9 @@ runServers(numberOfPods, function (err, servers) { | |||
102 | checking = true | 102 | checking = true |
103 | 103 | ||
104 | const waitingInterval = setInterval(function () { | 104 | const waitingInterval = setInterval(function () { |
105 | isThereAwaitingRequests(servers, function (res) { | 105 | isThereAwaitingRequests(servers, function (err, res) { |
106 | if (err) throw err | ||
107 | |||
106 | if (res === true) { | 108 | if (res === true) { |
107 | console.log('A server has awaiting requests, waiting...') | 109 | console.log('A server has awaiting requests, waiting...') |
108 | return | 110 | return |
@@ -360,6 +362,6 @@ function isThereAwaitingRequests (servers, callback) { | |||
360 | }, function (err) { | 362 | }, function (err) { |
361 | if (err) throw err | 363 | if (err) throw err |
362 | 364 | ||
363 | return callback(noRequests === false) | 365 | return callback(null, noRequests === false) |
364 | }) | 366 | }) |
365 | } | 367 | } |