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 = (
34
34
35
35
// We want to wait for the feedback to be sent (or not)
36
36
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 ) ;
39
39
40
40
const cleanup = client . on ( 'afterSendEvent' , ( event : Event , response : TransportMakeRequestResponse ) => {
41
41
if ( event . event_id !== eventId ) {
Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ describe('sendFeedback', () => {
321
321
322
322
mockSdk ( ) ;
323
323
vi . spyOn ( getClient ( ) ! . getTransport ( ) ! , 'send' ) . mockImplementation ( ( ) => {
324
- return new Promise ( resolve => setTimeout ( resolve , 10_000 ) ) ;
324
+ return new Promise ( resolve => setTimeout ( resolve , 40_000 ) ) ;
325
325
} ) ;
326
326
327
327
const promise = sendFeedback ( {
@@ -330,7 +330,7 @@ describe('sendFeedback', () => {
330
330
message : 'mi' ,
331
331
} ) ;
332
332
333
- vi . advanceTimersByTime ( 5_000 ) ;
333
+ vi . advanceTimersByTime ( 30_000 ) ;
334
334
335
335
await expect ( promise ) . rejects . toMatch ( 'Unable to determine if Feedback was correctly sent.' ) ;
336
336
You can’t perform that action at this time.
0 commit comments