Skip to content

Commit

Permalink
Fix shouldNotHappen handler (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths authored May 4, 2022
1 parent 5e39d19 commit dc29113
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/2-nodes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('2 nodes', () => {

it('Publish to a topic - nodeA', async () => {
const promise = new Promise<GossipsubMessage>((resolve) => nodes[1].once(topic, resolve))
nodes[0].once(topic, (m) => shouldNotHappen)
nodes[0].once(topic, shouldNotHappen)

nodes[0].publish(topic, uint8ArrayFromString('hey'))

Expand Down
4 changes: 2 additions & 2 deletions test/gossip-incoming.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('gossip incoming', () => {

it('should gossip incoming messages', async () => {
const promise = new Promise<GossipsubMessage>((resolve) => nodes[2].once(topic, resolve))
nodes[0].once(topic, (m) => shouldNotHappen)
nodes[0].once(topic, shouldNotHappen)

nodes[0].publish(topic, uint8ArrayFromString('hey'))

Expand Down Expand Up @@ -78,7 +78,7 @@ describe('gossip incoming', () => {
after(() => Promise.all(nodes.map(stopNode)))

it('should not gossip incoming messages', async () => {
nodes[2].once(topic, (m) => shouldNotHappen)
nodes[2].once(topic, shouldNotHappen)

nodes[0].publish(topic, uint8ArrayFromString('hey'))

Expand Down

0 comments on commit dc29113

Please sign in to comment.