Fix relay test by adapting publish return error in case NoPeersToPublish

This commit is contained in:
NagyZoltanPeter 2026-01-27 14:41:08 +01:00
parent a97de822d7
commit c00ad8d876
No known key found for this signature in database
GPG Key ID: 3E1F97CF4A7B6F42

View File

@ -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)