aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/real-world
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/real-world')
-rw-r--r--server/tests/real-world/real-world.js6
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}