testaro 30.0.4 → 30.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/watch.js +5 -2
package/package.json
CHANGED
package/watch.js
CHANGED
|
@@ -178,14 +178,17 @@ const checkNetJob = async (servers, serverIndex, isForever, interval, noJobCount
|
|
|
178
178
|
await checkNetJob(servers, serverIndex + 1, isForever, interval, noJobCount + 1);
|
|
179
179
|
}
|
|
180
180
|
// Otherwise, if the server sent a valid job:
|
|
181
|
-
else if (id && sources) {
|
|
181
|
+
else if (id && sources && sources.target && sources.target.which) {
|
|
182
182
|
// Add the agent to it.
|
|
183
183
|
sources.agent = agent;
|
|
184
184
|
// If the job specifies a report destination:
|
|
185
185
|
const {sendReportTo} = sources;
|
|
186
186
|
if (sendReportTo) {
|
|
187
187
|
// Perform the job, adding result data to it.
|
|
188
|
-
|
|
188
|
+
const testee = sources.target.which;
|
|
189
|
+
console.log(
|
|
190
|
+
`${logStart}job ${id} (${nowString()})\n>> It will test ${testee}\n>> It will send report to ${sendReportTo}`
|
|
191
|
+
);
|
|
189
192
|
await doJob(contentObj);
|
|
190
193
|
let reportJSON = JSON.stringify(contentObj, null, 2);
|
|
191
194
|
console.log(`Job ${id} finished (${nowString()})`);
|