From cdd658d4dd842b0a708e6880f56544c6ee220332 Mon Sep 17 00:00:00 2001 From: howard-stearns Date: Tue, 4 Oct 2016 11:31:49 -0700 Subject: [PATCH] report results --- scripts/developer/tests/performance/summon.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/developer/tests/performance/summon.js b/scripts/developer/tests/performance/summon.js index cb3093ca5b..2eb1fbe301 100644 --- a/scripts/developer/tests/performance/summon.js +++ b/scripts/developer/tests/performance/summon.js @@ -91,4 +91,13 @@ Script.scriptEnding.connect(function () { }, 500); }); -messageSend({key: 'HELO'}); // Ask agents to report in now, before we start the tribbles. +messageSend({key: 'HELO'}); // Ask agents to report in now. +Script.setTimeout(function () { + if (0 === summonedAgents.length) { + Window.alert("No agents reported.\n\Please run " + MINIMUM_AVATARS + " instances of\n\ +http://cdn.highfidelity.com/davidkelly/production/scripts/tests/performance/crowd-agent.js\n\ +on your domain server."); + } else if (summonedAgents.length < MINIMUM_AVATARS) { + Window.alert("Only " + summonedAgents.length + " of the expected " + MINIMUM_AVATARS + " agents reported in."); + } +}, 5000);