Skip to content

Commit 945e412

Browse files
committed
Update test, change topic name
1 parent 2fad5a9 commit 945e412

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/subscribe.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ suite "test suite for subscribe":
181181
await ctxListen.subscribe("test/#", 0, on_data_sub_all)
182182
await sleepAsync 500
183183
await ctxMain.publish("test/random1", msg, 0)
184-
await ctxMain.publish("test/random2", msg, 0)
184+
await ctxMain.publish("second/random2", msg, 0)
185185
await ctxMain.publish("test/random3", msg, 0)
186186
await sleepAsync 500
187187
await ctxListen.unsubscribe("test/#")
188188
await sleepAsync 500
189-
check(msgCount == 3)
189+
check(msgCount == 2)
190190

191191
waitFor conn()
192192

0 commit comments

Comments
 (0)