2023-11-17 17:58:03 +02:00
|
|
|
import pytest
|
|
|
|
|
from src.libs.custom_logger import get_custom_logger
|
|
|
|
|
from src.steps.relay import StepsRelay
|
|
|
|
|
|
|
|
|
|
logger = get_custom_logger(__name__)
|
|
|
|
|
|
|
|
|
|
|
2023-11-20 10:08:15 +02:00
|
|
|
@pytest.mark.usefixtures(
|
|
|
|
|
"setup_main_relay_nodes", "setup_optional_relay_nodes", "subscribe_main_relay_nodes", "subscribe_optional_relay_nodes", "relay_warm_up"
|
|
|
|
|
)
|
2023-11-17 17:58:03 +02:00
|
|
|
class TestMultipleNodes(StepsRelay):
|
|
|
|
|
def test_first_node_to_start_publishes(self):
|
|
|
|
|
self.wait_for_published_message_to_reach_peer()
|
|
|
|
|
|
|
|
|
|
def test_last_node_to_start_publishes(self):
|
|
|
|
|
self.wait_for_published_message_to_reach_peer(sender=self.optional_nodes[-1])
|