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

Commit 7cb3912

Browse files
committed
test: Fix more missing addToStorageNode calls.
1 parent 8f4a3de commit 7cb3912

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/integration/StreamrClientConnection.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { describeRepeats, uid, fakePrivateKey } from '../utils'
66
import { StreamrClient } from '../../src/StreamrClient'
77
import { Defer } from '../../src/utils'
88
import Connection from '../../src/Connection'
9+
import { StorageNode } from '../../src/stream/StorageNode'
910

1011
import config from './config'
1112

@@ -406,6 +407,7 @@ describeRepeats('StreamrClient Connection', () => {
406407
const stream = await client.createStream({
407408
name: uid('stream')
408409
})
410+
await stream.addToStorageNode(StorageNode.STREAMR_DOCKER_DEV)
409411

410412
const connectionEventSpy = jest.spyOn(client.connection, '_send')
411413
const sub = await client.subscribe(stream.id, () => {})
@@ -442,6 +444,7 @@ describeRepeats('StreamrClient Connection', () => {
442444
const stream = await client.createStream({
443445
name: uid('stream')
444446
})
447+
await stream.addToStorageNode(StorageNode.STREAMR_DOCKER_DEV)
445448

446449
const connectionEventSpy = jest.spyOn(client.connection, 'send')
447450
const sub = await client.resend({
@@ -509,6 +512,7 @@ describeRepeats('StreamrClient Connection', () => {
509512
const stream = await client.createStream({
510513
name: uid('stream')
511514
})
515+
await stream.addToStorageNode(StorageNode.STREAMR_DOCKER_DEV)
512516
expect(client.isDisconnected()).toBeTruthy()
513517

514518
const message = {
@@ -532,6 +536,7 @@ describeRepeats('StreamrClient Connection', () => {
532536
const stream = await client.createStream({
533537
name: uid('stream')
534538
})
539+
await stream.addToStorageNode(StorageNode.STREAMR_DOCKER_DEV)
535540

536541
const message = {
537542
id1: uid('msg')
@@ -555,6 +560,7 @@ describeRepeats('StreamrClient Connection', () => {
555560
const stream = await client.createStream({
556561
name: uid('stream')
557562
})
563+
await stream.addToStorageNode(StorageNode.STREAMR_DOCKER_DEV)
558564

559565
const message = {
560566
id1: uid('msg')
@@ -581,6 +587,7 @@ describeRepeats('StreamrClient Connection', () => {
581587
const stream = await client.createStream({
582588
name: uid('stream')
583589
})
590+
await stream.addToStorageNode(StorageNode.STREAMR_DOCKER_DEV)
584591

585592
await client.subscribe({
586593
streamId: stream.id,
@@ -599,6 +606,7 @@ describeRepeats('StreamrClient Connection', () => {
599606
const stream = await client.createStream({
600607
name: uid('stream')
601608
})
609+
await stream.addToStorageNode(StorageNode.STREAMR_DOCKER_DEV)
602610

603611
await client.subscribe({
604612
streamId: stream.id,

0 commit comments

Comments
 (0)