From 6e669c3caedfbfe2b0375fc2d3a059afe3c482e1 Mon Sep 17 00:00:00 2001
From: pablo
Date: Tue, 15 Oct 2024 17:22:41 +0300
Subject: [PATCH] skip tests with no reliability protocol
---
tests/test_create_private_groups.py | 16 +-------------
tests/test_join_community.py | 2 +-
tests/test_leave_community.py | 31 ++++++++++++++--------------
tests/test_private_group_messages.py | 4 ++--
4 files changed, 20 insertions(+), 33 deletions(-)
diff --git a/tests/test_create_private_groups.py b/tests/test_create_private_groups.py
index a7c91291..a0a1716d 100644
--- a/tests/test_create_private_groups.py
+++ b/tests/test_create_private_groups.py
@@ -45,21 +45,7 @@ class TestCreatePrivateGroups(StepsCommon):
f"{len(missing_private_groups)} private groups out of {num_private_groups} were not created: " + "\n".join(formatted_missing_groups)
)
- def test_create_group_chat_with_latency(self):
- self.accept_contact_request()
- # we want to set latency only on the group creation requests
- with self.add_latency():
- self.test_create_group_chat_baseline()
-
- def test_create_group_chat_with_packet_loss(self):
- self.accept_contact_request()
- with self.add_packet_loss():
- self.test_create_group_chat_baseline()
-
- def test_create_group_chat_with_low_bandwith(self):
- self.accept_contact_request()
- with self.add_low_bandwith():
- self.test_create_group_chat_baseline()
+ # for creating private group we don't have realiability protocol, therefore skipping the tests for latency, packet loss and low bandwith
def test_create_group_with_node_pause(self):
self.accept_contact_request()
diff --git a/tests/test_join_community.py b/tests/test_join_community.py
index d9451045..a8659400 100644
--- a/tests/test_join_community.py
+++ b/tests/test_join_community.py
@@ -25,7 +25,7 @@ class TestJoinCommunity(StepsCommon):
request_to_join_id = response_to_join["result"]["requestsToJoinCommunity"][0]["id"]
community_join_requests.append((community_id, request_to_join_id, timestamp, community_node["status_node"], initial_members))
- delay(4)
+ delay(10)
failed_community_joins = []
for community_id, request_to_join_id, join_req_ts, status_node, initial_members in community_join_requests:
diff --git a/tests/test_leave_community.py b/tests/test_leave_community.py
index 8b89d8c6..f7b2c8e4 100644
--- a/tests/test_leave_community.py
+++ b/tests/test_leave_community.py
@@ -34,20 +34,21 @@ class TestLeaveCommunity(StepsCommon):
f"{len(failed_community_leave)} community joins out of {len(self.community_nodes)}: " + "\n".join(formatted_missing_requests)
)
- def test_leave_community_with_latency(self):
- self.setup_community_nodes()
- self.join_created_communities()
- with self.add_latency():
- self.test_leave_community_baseline()
+ # for leaving community we don't have realiability protocol
+ # def test_leave_community_with_latency(self):
+ # self.setup_community_nodes()
+ # self.join_created_communities()
+ # with self.add_latency():
+ # self.test_leave_community_baseline()
- def test_leave_community_with_packet_loss(self):
- self.setup_community_nodes()
- self.join_created_communities()
- with self.add_packet_loss():
- self.test_leave_community_baseline()
+ # def test_leave_community_with_packet_loss(self):
+ # self.setup_community_nodes()
+ # self.join_created_communities()
+ # with self.add_packet_loss():
+ # self.test_leave_community_baseline()
- def test_leave_community_with_low_bandwith(self):
- self.setup_community_nodes()
- self.join_created_communities()
- with self.add_low_bandwith():
- self.test_leave_community_baseline()
+ # def test_leave_community_with_low_bandwith(self):
+ # self.setup_community_nodes()
+ # self.join_created_communities()
+ # with self.add_low_bandwith():
+ # self.test_leave_community_baseline()
diff --git a/tests/test_private_group_messages.py b/tests/test_private_group_messages.py
index 69159622..db487316 100644
--- a/tests/test_private_group_messages.py
+++ b/tests/test_private_group_messages.py
@@ -74,7 +74,7 @@ class TestPrivateGroupMessages(StepsCommon):
message = str(uuid4())
self.second_node.send_group_chat_message(self.private_group_id, message)
delay(10)
- assert self.first_node.wait_for_logs([message])
+ assert self.first_node.wait_for_logs([message], 60)
def test_group_chat_messages_with_node_pause_40_seconds(self):
self.accept_contact_request()
@@ -83,4 +83,4 @@ class TestPrivateGroupMessages(StepsCommon):
message = str(uuid4())
self.second_node.send_group_chat_message(self.first_node_pubkey, message)
delay(40)
- assert self.first_node.wait_for_logs([message])
+ assert self.first_node.wait_for_logs([message], 60)