Skip to content

Commit

Permalink
sending failed event by post failed event method
Browse files Browse the repository at this point in the history
  • Loading branch information
prklm10 committed Oct 20, 2023
1 parent c55f819 commit 59d7f86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion percy/util/postFailedEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ module.exports = async function postFailedEvents(error) {
};

module.exports.request = async function request(data) {
await utils.request.post('/percy/events', data);
try {
await utils.postFailedEvent(data);
} catch {}
}; // To mock in test case

0 comments on commit 59d7f86

Please sign in to comment.