From 59d7f863d58ce41e247a4ccc66cdc135a4670439 Mon Sep 17 00:00:00 2001 From: prklm10 Date: Fri, 20 Oct 2023 15:45:55 +0530 Subject: [PATCH] sending failed event by post failed event method --- percy/util/postFailedEvents.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/percy/util/postFailedEvents.js b/percy/util/postFailedEvents.js index 3bf2384..3f4029f 100644 --- a/percy/util/postFailedEvents.js +++ b/percy/util/postFailedEvents.js @@ -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