Skip to content

Commit

Permalink
Fix CI script errors (#5893)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Jan 19, 2022
1 parent 4bd3a88 commit 4dd6aba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/ci/log-changesets.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function logChangesets() {

req.on('error', error => reject(error));

req.write(data);
req.write(data, err => reject(err));
req.end();
});
}
Expand Down
14 changes: 9 additions & 5 deletions scripts/ci/notify-test-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ async function notifyTestResults() {
req.write(
JSON.stringify({
text: message
})
}),
err => reject(err)
);
req.end();
});
Expand All @@ -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();
});

Expand Down

0 comments on commit 4dd6aba

Please sign in to comment.