Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

chore: update dependencies #116

Merged
merged 10 commits into from
Jul 9, 2021
Merged

chore: update dependencies #116

merged 10 commits into from
Jul 9, 2021

Conversation

achingbrain
Copy link
Member

BREAKING CHANGE: uses new multiaddr, libp2p-interfaces, etc

BREAKING CHANGE: uses new multiaddr, libp2p-interfaces, etc
data: message,
topicIDs: [topic]
}))

expect(messageToEmit).to.eql(expected)
})

it.skip('does not send received message back to original sender', async () => {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, just writing it. I pushed an update to see if CI was healthier with the libp2p rc, it is!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added now.

floodsub1 = new Floodsub(peer1, defOptions)
floodsub2 = new Floodsub(peer2, defOptions)
const libp2p = {
peerId: await PeerId.create(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to not use createPeer?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spinning up libp2p nodes is overkill for unit tests. Ideally we wouldn't depend on libp2p at all in this module as libp2p itself depends on floodsub creating a loop which we really need to break in order to simplify publishing new versions.

Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vasco-santos vasco-santos merged commit 7103cf2 into master Jul 9, 2021
@vasco-santos vasco-santos deleted the chore/update-deps branch July 9, 2021 10:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants