mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-28 02:33:10 +00:00
Fix relay test by adapting publish return error in case NoPeersToPublish
This commit is contained in:
parent
a97de822d7
commit
c00ad8d876
@ -1,7 +1,7 @@
|
||||
{.used.}
|
||||
|
||||
import
|
||||
std/[os, sequtils, sysrand, math],
|
||||
std/[os, strutils, sequtils, sysrand, math],
|
||||
stew/byteutils,
|
||||
testutils/unittests,
|
||||
chronos,
|
||||
@ -450,7 +450,8 @@ suite "WakuNode - Relay":
|
||||
await sleepAsync(500.millis)
|
||||
|
||||
let res = await node2.publish(some($shard), message)
|
||||
assert res.isOk(), $res.error
|
||||
check res.isErr()
|
||||
check contains($res.error, "NoPeersToPublish")
|
||||
|
||||
await sleepAsync(500.millis)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user