testaro 8.1.2 → 8.1.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/watch.js +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "8.1.2",
3
+ "version": "8.1.3",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/watch.js CHANGED
@@ -78,6 +78,10 @@ const checkNetJob = async () => {
78
78
  }
79
79
  });
80
80
  });
81
+ request.on('error', error => {
82
+ console.log(`ERROR checking for a network job (${error.message})`);
83
+ resolve({});
84
+ });
81
85
  request.end();
82
86
  });
83
87
  console.log(`Network job ${script.id ? '' : 'not '}found`);
@@ -127,9 +131,13 @@ const writeNetReport = async report => {
127
131
  });
128
132
  });
129
133
  report.agent = agent;
134
+ request.on('error', error => {
135
+ console.log(`ERROR submitting job report (${error.message})`);
136
+ resolve({});
137
+ });
130
138
  request.write(JSON.stringify(report, null, 2));
131
139
  request.end();
132
- console.log(`Report ${report.script.id} submitted`);
140
+ console.log(`Report ${report.job.id} submitted`);
133
141
  });
134
142
  return ack;
135
143
  };