File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ export const sendFeedback: SendFeedback = (
3434
3535 // We want to wait for the feedback to be sent (or not)
3636 return new Promise < string > ( ( resolve , reject ) => {
37- // After 5s , we want to clear anyhow
38- const timeout = setTimeout ( ( ) => reject ( 'Unable to determine if Feedback was correctly sent.' ) , 5_000 ) ;
37+ // After 30s , we want to clear anyhow
38+ const timeout = setTimeout ( ( ) => reject ( 'Unable to determine if Feedback was correctly sent.' ) , 30_000 ) ;
3939
4040 const cleanup = client . on ( 'afterSendEvent' , ( event : Event , response : TransportMakeRequestResponse ) => {
4141 if ( event . event_id !== eventId ) {
Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ describe('sendFeedback', () => {
321321
322322 mockSdk ( ) ;
323323 vi . spyOn ( getClient ( ) ! . getTransport ( ) ! , 'send' ) . mockImplementation ( ( ) => {
324- return new Promise ( resolve => setTimeout ( resolve , 10_000 ) ) ;
324+ return new Promise ( resolve => setTimeout ( resolve , 40_000 ) ) ;
325325 } ) ;
326326
327327 const promise = sendFeedback ( {
@@ -330,7 +330,7 @@ describe('sendFeedback', () => {
330330 message : 'mi' ,
331331 } ) ;
332332
333- vi . advanceTimersByTime ( 5_000 ) ;
333+ vi . advanceTimersByTime ( 30_000 ) ;
334334
335335 await expect ( promise ) . rejects . toMatch ( 'Unable to determine if Feedback was correctly sent.' ) ;
336336
You can’t perform that action at this time.
0 commit comments