From 6db849244377046482ef515cbe6ee1661ca524a8 Mon Sep 17 00:00:00 2001 From: Ivan FB <128452529+Ivansete-status@users.noreply.github.com> Date: Mon, 26 May 2025 14:03:19 +0200 Subject: [PATCH] Not found response is expected when node is not subscribed (#120) --- src/steps/sharding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/sharding.py b/src/steps/sharding.py index d488819f..0c2079e8 100644 --- a/src/steps/sharding.py +++ b/src/steps/sharding.py @@ -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"