From d5f40e8b124fbebb63717f546b6e27f4cececa17 Mon Sep 17 00:00:00 2001 From: Tom cappleman Date: Wed, 27 Oct 2021 14:27:28 +0100 Subject: [PATCH] Tweak UT timings --- tests/test_qos_map.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_qos_map.py b/tests/test_qos_map.py index 30ebac55fb..f03ce1031c 100644 --- a/tests/test_qos_map.py +++ b/tests/test_qos_map.py @@ -119,6 +119,7 @@ def init_test(self, dvs): # Set switch FC capability to 63 dvs.setReadOnlyAttr('SAI_OBJECT_TYPE_SWITCH', 'SAI_SWITCH_ATTR_MAX_NUMBER_OF_FORWARDING_CLASSES', '63') + time.sleep(1) def get_qos_id(self): diff = set(self.asic_db.get_keys(self.ASIC_QOS_MAP_STR)) - set(self.asic_qos_map_ids) @@ -131,7 +132,7 @@ def test_dscp_to_fc(self, dvs): # Create a DSCP_TO_FC map dscp_map = [(str(i), str(i)) for i in range(0, 64)] self.dscp_ps.set("AZURE", swsscommon.FieldValuePairs(dscp_map)) - time.sleep(1) + time.sleep(2) self.asic_db.wait_for_n_keys(self.ASIC_QOS_MAP_STR, self.asic_qos_map_count + 1) @@ -174,7 +175,7 @@ def test_exp_to_fc(self, dvs): # Create a EXP_TO_FC map exp_map = [(str(i), str(i)) for i in range(0, 8)] self.exp_ps.set("AZURE", swsscommon.FieldValuePairs(exp_map)) - time.sleep(1) + time.sleep(2) self.asic_db.wait_for_n_keys(self.ASIC_QOS_MAP_STR, self.asic_qos_map_count + 1) @@ -226,7 +227,7 @@ def test_per_port_cbf_binding(self, dvs): # Create a DSCP_TO_FC map dscp_map = [(str(i), str(i)) for i in range(0, 64)] self.dscp_ps.set("AZURE", swsscommon.FieldValuePairs(dscp_map)) - time.sleep(1) + time.sleep(2) self.asic_db.wait_for_n_keys(self.ASIC_QOS_MAP_STR, self.asic_qos_map_count + 1) dscp_map_id = self.get_qos_id() self.asic_qos_map_ids = self.asic_db.get_keys(self.ASIC_QOS_MAP_STR)