mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-13 13:26:44 +00:00
make sure to waitsub in sparse test
This commit is contained in:
parent
03801fcc52
commit
ab8d7cc968
@ -552,7 +552,7 @@ method publish*(g: GossipSub,
|
|||||||
let msg = newMessage(g.peerInfo, data, topic, g.sign)
|
let msg = newMessage(g.peerInfo, data, topic, g.sign)
|
||||||
debug "created new message", msg
|
debug "created new message", msg
|
||||||
|
|
||||||
debug "publishing on topic", name = topic
|
debug "publishing on topic", name = topic, peers = peers
|
||||||
if msg.msgId notin g.mcache:
|
if msg.msgId notin g.mcache:
|
||||||
g.mcache.put(msg)
|
g.mcache.put(msg)
|
||||||
|
|
||||||
|
@ -398,6 +398,7 @@ suite "GossipSub":
|
|||||||
seenFut.complete()
|
seenFut.complete()
|
||||||
|
|
||||||
subs &= dialer.subscribe("foobar", handler)
|
subs &= dialer.subscribe("foobar", handler)
|
||||||
|
subs &= waitSub(nodes[0], dialer, "foobar")
|
||||||
|
|
||||||
await allFuturesThrowing(subs)
|
await allFuturesThrowing(subs)
|
||||||
await wait(nodes[0].publish("foobar",
|
await wait(nodes[0].publish("foobar",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user