Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Apr 11, 2024
1 parent 98435ef commit da66df8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ describe('Connections manager', () => {
await sleep(5000)
// It looks LibP2P dials peers initially when it's started and
// then IPFS service dials peers again when started, thus
// peersCount * 2
expect(spyOnDial).toHaveBeenCalledTimes(peersCount * 2)
// peersCount-1 * 2 because we don't dial ourself (the first peer in the list)
expect(spyOnDial).toHaveBeenCalledTimes((peersCount - 1) * 2)
// Temporary fix for hanging test - websocketOverTor doesn't have abortController
await sleep(5000)
})
Expand Down
5 changes: 3 additions & 2 deletions packages/e2e-tests/src/tests/multipleClients.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ describe('Multiple Clients', () => {
})

it("Owner doesn't see the connection status element in second channel", async () => {
await sleep(10000)
const correctConnectionStatusElementPresence = await secondChannelOwner.waitForConnectionStatus(false)
expect(correctConnectionStatusElementPresence).toBe(true)
})
Expand Down Expand Up @@ -490,14 +491,14 @@ describe('Multiple Clients', () => {
it('User 1 re-opens app', async () => {
console.log('User 1 re-opens app')
await users.user1.app?.openWithRetries()
await sleep(30000)
await sleep(35000)
})

// Check correct channels replication
it('User 1 sees information about recreation general channel and see correct amount of messages (#2334)', async () => {
generalChannelUser1 = new Channel(users.user1.app.driver, 'general')
await generalChannelUser1.element.isDisplayed()
await sleep(30000)
await sleep(40000)

await generalChannelUser1.waitForUserMessage(
users.owner.username,
Expand Down

0 comments on commit da66df8

Please sign in to comment.