diff --git a/scripts/ci/log-changesets.js b/scripts/ci/log-changesets.js index 6ec33a8326d..c031d998e4e 100644 --- a/scripts/ci/log-changesets.js +++ b/scripts/ci/log-changesets.js @@ -70,7 +70,7 @@ async function logChangesets() { req.on('error', error => reject(error)); - req.write(data); + req.write(data, err => reject(err)); req.end(); }); } diff --git a/scripts/ci/notify-test-result.js b/scripts/ci/notify-test-result.js index 37fd83ec628..6d2dc998885 100644 --- a/scripts/ci/notify-test-result.js +++ b/scripts/ci/notify-test-result.js @@ -75,7 +75,8 @@ async function notifyTestResults() { req.write( JSON.stringify({ text: message - }) + }), + err => reject(err) ); req.end(); }); @@ -101,10 +102,13 @@ async function notifyTestResults() { req.on('error', error => reject(error)); - req.write({ - testStatus, - testUrl: workflowUrl - }); + req.write( + JSON.stringify({ + testStatus, + testUrl: workflowUrl + }), + err => reject(err) + ); req.end(); });