Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 52259be

Browse files
committed
test: Split async tasks across multiple before hooks in resend tests.
1 parent ce737a3 commit 52259be

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/integration/ResendReconnect.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ describe('resend/reconnect', () => {
3636
})
3737

3838
await stream.addToStorageNode(config.clientOptions.storageNode.address)
39+
}, 10000)
3940

41+
beforeEach(async () => {
4042
publishTestMessages = getPublishTestMessages(client, {
4143
streamId: stream.id,
4244
waitForLast: true,
4345
})
4446

4547
publishedMessages = await publishTestMessages(MAX_MESSAGES)
46-
}, 10 * 1000)
48+
}, 10000)
4749

4850
afterEach(async () => {
4951
await client.disconnect()
@@ -53,6 +55,7 @@ describe('resend/reconnect', () => {
5355
let shouldDisconnect = false
5456
let sub: Subscription
5557
let messages: any[] = []
58+
5659
beforeEach(async () => {
5760
const done = Defer()
5861
messages = []

test/integration/Resends.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ describe('StreamrClient resends', () => {
7777
})
7878

7979
await stream.addToStorageNode(config.clientOptions.storageNode.address)
80-
8180
})
8281

8382
beforeEach(async () => {

0 commit comments

Comments
 (0)