fix the community setup

This commit is contained in:
Florin Barbu 2024-09-23 10:57:07 +03:00
parent 69cf71875a
commit 83fe97451c
No known key found for this signature in database
GPG Key ID: 593D6DBC6D9E5095
4 changed files with 4 additions and 12 deletions

View File

@ -9,9 +9,7 @@ from src.steps.common import StepsCommon
class TestCommunityMessages(StepsCommon):
@pytest.mark.flaky(reruns=2)
def test_community_messages_baseline(self):
try:
assert self.community_nodes
except:
if not self.community_nodes:
self.setup_community_nodes(node_limit=1)
self.join_created_communities()

View File

@ -9,9 +9,7 @@ from datetime import datetime
class TestFetchCommunity(StepsCommon):
@pytest.mark.flaky(reruns=2)
def test_fetch_community_baseline(self):
try:
self.community_nodes
except:
if not self.community_nodes:
self.setup_community_nodes()
failed_community_fetches = []

View File

@ -9,9 +9,7 @@ from datetime import datetime
class TestJoinCommunity(StepsCommon):
@pytest.mark.flaky(reruns=2)
def test_join_community_baseline(self):
try:
self.community_nodes
except:
if not self.community_nodes:
self.setup_community_nodes()
community_join_requests = []

View File

@ -8,9 +8,7 @@ from datetime import datetime
class TestLeaveCommunity(StepsCommon):
@pytest.mark.flaky(reruns=2)
def test_leave_community_baseline(self):
try:
self.community_nodes
except:
if not self.community_nodes:
self.setup_community_nodes()
self.join_created_communities()