@@ -631,7 +631,7 @@ suite "WakuNode - Relay":
631631 # Stop all nodes
632632 await allFutures (nodes.mapIt (it.stop ()))
633633
634- asyncTest " Only one subscription is allowed for contenttopics that generate the same shard" :
634+ asyncTest " Multiple subscription calls are allowed for contenttopics that generate the same shard" :
635635 # # Setup
636636 let
637637 nodeKey = generateSecp256k1Key ()
@@ -663,12 +663,12 @@ suite "WakuNode - Relay":
663663 # # When
664664 node.subscribe ((kind: ContentSub , topic: contentTopicA), some (handler)).isOkOr:
665665 assert false , " Failed to subscribe to topic: " & $ error
666- node.subscribe ((kind: ContentSub , topic: contentTopicB), some (handler)).isErrOr :
666+ node.subscribe ((kind: ContentSub , topic: contentTopicB), some (handler)).isOkOr :
667667 assert false ,
668- " The subscription should fail because is already subscribe to that shard"
669- node.subscribe ((kind: ContentSub , topic: contentTopicC), some (handler)).isErrOr :
668+ " The subscription call shouldn't error even though it's already subscribed to that shard"
669+ node.subscribe ((kind: ContentSub , topic: contentTopicC), some (handler)).isOkOr :
670670 assert false ,
671- " The subscription should fail because is already subscribe to that shard"
671+ " The subscription call shouldn't error even though it's already subscribed to that shard"
672672
673673 # # Then
674674 node.unsubscribe ((kind: ContentUnsub , topic: contentTopicB)).isOkOr:
0 commit comments