Fix tests timeout (#77)

This commit is contained in:
Szymon Szlachtowicz 2021-10-15 14:46:10 +02:00 committed by GitHub
parent 1bc239fa71
commit 7ec7344b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,7 @@ describe("Messenger", () => {
let identityBob: Identity;
beforeEach(async function () {
this.timeout(10_000);
this.timeout(20_000);
dbg("Generate keys");
identityAlice = Identity.generate();
@ -27,8 +27,9 @@ describe("Messenger", () => {
dbg("Create messengers");
[messengerAlice, messengerBob] = await Promise.all([
Messenger.create(identityAlice),
Messenger.create(identityAlice, { bootstrap: false }),
Messenger.create(identityBob, {
bootstrap: false,
libp2p: { addresses: { listen: ["/ip4/0.0.0.0/tcp/0/ws"] } },
}),
]);