testaro 8.0.6 → 8.0.7
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 +2 -1
package/package.json
CHANGED
package/watch.js
CHANGED
|
@@ -103,7 +103,7 @@ const writeDirReport = async report => {
|
|
|
103
103
|
// Submits a network report.
|
|
104
104
|
const writeNetReport = async report => {
|
|
105
105
|
const ack = await new Promise(resolve => {
|
|
106
|
-
const wholeURL = `${process.env.PROTOCOL}://${reportURL}
|
|
106
|
+
const wholeURL = `${process.env.PROTOCOL}://${reportURL}`;
|
|
107
107
|
const request = client.request(wholeURL, {method: 'POST'}, response => {
|
|
108
108
|
const chunks = [];
|
|
109
109
|
response.on('data', chunk => {
|
|
@@ -122,6 +122,7 @@ const writeNetReport = async report => {
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
|
+
report.agent = agent;
|
|
125
126
|
request.write(JSON.stringify(report, null, 2));
|
|
126
127
|
request.end();
|
|
127
128
|
console.log(`Report ${report.script.id} submitted`);
|