skip tests with no reliability protocol

This commit is contained in:
pablo
2024-10-15 17:22:41 +03:00
parent 4a316e39ba
commit 6e669c3cae
4 changed files with 20 additions and 33 deletions
+1 -15
View File
@@ -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()
+1 -1
View File
@@ -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:
+16 -15
View File
@@ -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()
+2 -2
View File
@@ -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)