Not found response is expected when node is not subscribed (#120)

This commit is contained in:
Ivan FB 2025-05-26 14:03:19 +02:00 committed by GitHub
parent 5bdbd7dae0
commit 6db8492443
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,4 +204,4 @@ class StepsSharding(StepsRelay):
self.check_published_message_reaches_relay_peer(pubsub_topic=pubsub_topic)
raise AssertionError("Publishing messages on unsubscribed shard worked!!!")
except Exception as ex:
assert f"Failed to publish: Node not subscribed to topic: {pubsub_topic}" in str(ex)
assert "Not Found" in str(ex), "Expected 404 Not Found because the node is not subscribed"