Skip to content

Commit 8d0ae0c

Browse files
authored
Add more delay to flaky node bindings tests (#1710)
1 parent ea26c14 commit 8d0ae0c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

bindings_node/test/Conversation.test.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ describe.concurrent('Conversation', () => {
421421

422422
// create message disappearing settings so that messages are deleted after 1 second
423423
const messageDisappearingSettings: MessageDisappearingSettings = {
424-
fromNs: 5_000_000,
425-
inNs: 5_000_000,
424+
fromNs: 10_000_000,
425+
inNs: 10_000_000,
426426
}
427427

428428
// create a group with message disappearing settings
@@ -434,8 +434,8 @@ describe.concurrent('Conversation', () => {
434434

435435
// verify that the message disappearing settings are set and enabled
436436
expect(conversation.messageDisappearingSettings()).toEqual({
437-
fromNs: 5_000_000,
438-
inNs: 5_000_000,
437+
fromNs: 10_000_000,
438+
inNs: 10_000_000,
439439
})
440440
expect(conversation.isMessageDisappearingEnabled()).toBe(true)
441441

@@ -455,13 +455,13 @@ describe.concurrent('Conversation', () => {
455455

456456
// verify that the message disappearing settings are set and enabled
457457
expect(conversation2!.messageDisappearingSettings()).toEqual({
458-
fromNs: 5_000_000,
459-
inNs: 5_000_000,
458+
fromNs: 10_000_000,
459+
inNs: 10_000_000,
460460
})
461461
expect(conversation2!.isMessageDisappearingEnabled()).toBe(true)
462462

463463
// wait for the messages to be deleted
464-
await sleep(5000)
464+
await sleep(10000)
465465

466466
// verify that the messages are deleted
467467
expect((await conversation.findMessages()).length).toBe(1)
@@ -512,8 +512,8 @@ describe.concurrent('Conversation', () => {
512512

513513
// create message disappearing settings so that messages are deleted after 1 second
514514
const messageDisappearingSettings: MessageDisappearingSettings = {
515-
fromNs: 5_000_000,
516-
inNs: 5_000_000,
515+
fromNs: 10_000_000,
516+
inNs: 10_000_000,
517517
}
518518

519519
// create a group with message disappearing settings
@@ -525,8 +525,8 @@ describe.concurrent('Conversation', () => {
525525

526526
// verify that the message disappearing settings are set and enabled
527527
expect(conversation.messageDisappearingSettings()).toEqual({
528-
fromNs: 5_000_000,
529-
inNs: 5_000_000,
528+
fromNs: 10_000_000,
529+
inNs: 10_000_000,
530530
})
531531
expect(conversation.isMessageDisappearingEnabled()).toBe(true)
532532

@@ -546,13 +546,13 @@ describe.concurrent('Conversation', () => {
546546

547547
// verify that the message disappearing settings are set and enabled
548548
expect(conversation2!.messageDisappearingSettings()).toEqual({
549-
fromNs: 5_000_000,
550-
inNs: 5_000_000,
549+
fromNs: 10_000_000,
550+
inNs: 10_000_000,
551551
})
552552
expect(conversation2!.isMessageDisappearingEnabled()).toBe(true)
553553

554554
// wait for the messages to be deleted
555-
await sleep(5000)
555+
await sleep(10000)
556556

557557
// verify that the messages are deleted
558558
expect((await conversation.findMessages()).length).toBe(1)

0 commit comments

Comments
 (0)